This repository has been archived by the owner on Nov 21, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from medusajs/feat/apply-theme
feat: apply theme
- Loading branch information
Showing
85 changed files
with
1,915 additions
and
278 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* eslint-env node */ | ||
module.exports = { | ||
extends: ["@medusajs/eslint-config-ui"], | ||
parserOptions: { | ||
project: "./tsconfig.json", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# ui-preset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "@medusajs/ui-preset", | ||
"version": "0.0.0", | ||
"description": "Medusa UI preset", | ||
"license": "MIT", | ||
"author": "Kasper Kristensen <[email protected]>", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"types": "./dist/index.d.ts", | ||
"main": "./dist/index.js", | ||
"scripts": { | ||
"build": "tsup" | ||
}, | ||
"dependencies": { | ||
"tailwindcss": "^3.3.2", | ||
"tailwindcss-animate": "^1.0.6" | ||
}, | ||
"devDependencies": { | ||
"@medusajs/tsconfig-ui": "*", | ||
"tsup": "^7.1.0", | ||
"typescript": "^5.1.6", | ||
"eslint": "^7.32.0", | ||
"@medusajs/eslint-config-ui": "*" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { preset } from "./preset" | ||
|
||
module.exports = preset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { Config } from "tailwindcss" | ||
|
||
import plugin from "./plugin" | ||
|
||
const preset = { | ||
content: [], | ||
plugins: [plugin, require("tailwindcss-animate")], | ||
} satisfies Config | ||
|
||
export { preset } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
export const components = { | ||
".button-neutral-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-neutral-gradient-from), var(--button-neutral-gradient-to))", | ||
"opacity": "2%" | ||
}, | ||
".button-danger-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-danger-gradient-from), var(--button-danger-gradient-to))", | ||
"opacity": "12%" | ||
}, | ||
".button-inverted-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-inverted-gradient-from), var(--button-inverted-gradient-to))", | ||
"opacity": "12%" | ||
}, | ||
".button-danger-pressed-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-danger-pressed-gradient-from), var(--button-danger-pressed-gradient-to))", | ||
"opacity": "16%" | ||
}, | ||
".button-inverted-pressed-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-inverted-pressed-gradient-from), var(--button-inverted-pressed-gradient-to))", | ||
"opacity": "16%" | ||
}, | ||
".button-inverted-hover-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-inverted-hover-gradient-from), var(--button-inverted-hover-gradient-to))", | ||
"opacity": "16%" | ||
}, | ||
".button-danger-hover-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-danger-hover-gradient-from), var(--button-danger-hover-gradient-to))", | ||
"opacity": "16%" | ||
}, | ||
".button-neutral-pressed-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-neutral-pressed-gradient-from), var(--button-neutral-pressed-gradient-to))", | ||
"opacity": "6%" | ||
}, | ||
".button-neutral-hover-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--button-neutral-hover-gradient-from), var(--button-neutral-hover-gradient-to))", | ||
"opacity": "6%" | ||
}, | ||
".bg-toggle-off-hover-gradient": { | ||
"backgroundImage": "linear-gradient(0deg, var(--bg-toggle-off-hover-gradient-from), var(--bg-toggle-off-hover-gradient-to))", | ||
"opacity": "6%" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export const effects = { | ||
"dark": { | ||
"--elevation-flyout": "0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 8px 16px 0px rgba(0, 0, 0, 0.32)", | ||
"--form-focus": "0px 0px 0px 2px rgba(28, 28, 31, 1), 0px 0px 0px 4px rgba(0, 145, 255, 1)", | ||
"--elevation-modal": "0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 16px 32px 0px rgba(0, 0, 0, 0.32), 0px 2px 24px 0px rgba(0, 0, 0, 0.32)", | ||
"--elevation-card-hover": "0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 1px 2px -1px rgba(255, 255, 255, 0.16), 0px 2px 8px 0px rgba(0, 0, 0, 0.4)", | ||
"--elevation-card-rest": "0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 1px 2px -1px rgba(255, 255, 255, 0.16), 0px 2px 4px 0px rgba(0, 0, 0, 0.4)", | ||
"--form-active": "0px 0px 0px 3px rgba(16, 42, 76, 1)", | ||
"--elevation-tooltip": "0px 0px 0px 1px rgba(255, 255, 255, 0.1), 0px 4px 8px 0px rgba(0, 0, 0, 0.32)" | ||
}, | ||
"light": { | ||
"--details-switch-handle": "0px 0px 2px 1px rgba(255, 255, 255, 1) inset, 0px 1px 0px 0px rgba(255, 255, 255, 1) inset, 0px 0px 0px 0.5px rgba(3, 7, 18, 0.02), 0px 5px 4px 0px rgba(3, 7, 18, 0.02), 0px 3px 3px 0px rgba(3, 7, 18, 0.04), 0px 1px 2px 0px rgba(3, 7, 18, 0.12), 0px 0px 1px 0px rgba(3, 7, 18, 0.08)", | ||
"--details-switch-background-focus": "0px 0px 0px 1px rgba(255, 255, 255, 1), 0px 0px 0px 3px rgba(59, 130, 246, 0.6), 0px 1px 1px 0px rgba(3, 7, 18, 0.04) inset, 0px 2px 4px 0px rgba(3, 7, 18, 0.04) inset, 0px 0px 0px 0.5px rgba(3, 7, 18, 0.06) inset, 0px 0px 8px 0px rgba(3, 7, 18, 0.02) inset, 0px 1px 0px 0px rgba(255, 255, 255, 1), 0px 2px 4px 0px rgba(3, 7, 18, 0.04)", | ||
"--details-switch-background": "0px 1px 1px 0px rgba(3, 7, 18, 0.04) inset, 0px 2px 4px 0px rgba(3, 7, 18, 0.04) inset, 0px 0px 0px 0.5px rgba(3, 7, 18, 0.06) inset, 0px 0px 8px 0px rgba(3, 7, 18, 0.02) inset, 0px 1px 0px 0px rgba(255, 255, 255, 1), 0px 2px 4px 0px rgba(3, 7, 18, 0.04)", | ||
"--borders-focus": "0px 0px 0px 1px rgba(255, 255, 255, 1), 0px 0px 0px 3px rgba(59, 130, 246, 0.6)", | ||
"--elevation-flyout": "0px 0px 0px 1px rgba(3, 7, 18, 0.08), 0px 8px 16px 0px rgba(3, 7, 18, 0.08)", | ||
"--borders-interactive": "0px 0px 0px 1px rgba(59, 130, 246, 1)", | ||
"--buttons-secondary": "0px -1px 0px 0px rgba(3, 7, 18, 0.08) inset, 0px 1px 1px 0px rgba(3, 7, 18, 0.06)", | ||
"--buttons-danger": "0px 1px 0px 0px rgba(255, 255, 255, 0.16) inset, 0px 1px 1px 0px rgba(190, 18, 60, 0.2)", | ||
"--buttons-primary-focus": "0px 1px 0px 0px rgba(255, 255, 255, 0.16) inset, 0px 1px 1px 0px rgba(3, 7, 18, 0.2), 0px 0px 0px 1px rgba(255, 255, 255, 1), 0px 0px 0px 3px rgba(59, 130, 246, 0.6)", | ||
"--elevation-modal": "0px 0px 0px 1px rgba(255, 255, 255, 1) inset, 0px 0px 0px 2px rgba(229, 231, 235, 0.4) inset, 0px 0px 0px 1px rgba(3, 7, 18, 0.08), 0px 16px 32px 0px rgba(3, 7, 18, 0.08), 0px 2px 24px 0px rgba(3, 7, 18, 0.08)", | ||
"--borders-interactive-w-focus": "0px 1px 2px 0px rgba(30, 58, 138, 0.5), 0px 0px 0px 1px rgba(59, 130, 246, 1), 0px 0px 0px 2px rgba(255, 255, 255, 1), 0px 0px 0px 4px rgba(59, 130, 246, 0.6)", | ||
"--borders-active": "0px 0px 0px 3px rgba(59, 130, 246, 0.2)", | ||
"--borders-base-w-shadow": "0px 1px 2px 0px rgba(3, 7, 18, 0.2), 0px 0px 0px 1px rgba(229, 231, 235, 1)", | ||
"--borders-base": "0px 0px 0px 1px rgba(229, 231, 235, 1)", | ||
"--borders-strong-w-shadow": "0px 1px 2px 0px rgba(3, 7, 18, 0.3), 0px 0px 0px 1px rgba(209, 213, 219, 1)", | ||
"--borders-interactive-w-shadow": "0px 1px 2px 0px rgba(30, 58, 138, 0.5), 0px 0px 0px 1px rgba(59, 130, 246, 1)", | ||
"--buttons-primary": "0px 1px 0px 0px rgba(255, 255, 255, 0.16) inset, 0px 1px 1px 0px rgba(3, 7, 18, 0.2)", | ||
"--buttons-secondary-focus": "0px -1px 0px 0px rgba(3, 7, 18, 0.08) inset, 0px 1px 1px 0px rgba(3, 7, 18, 0.06), 0px 0px 0px 1px rgba(255, 255, 255, 1), 0px 0px 0px 3px rgba(59, 130, 246, 0.6)", | ||
"--buttons-danger-focus": "0px 1px 0px 0px rgba(255, 255, 255, 0.16) inset, 0px 1px 1px 0px rgba(190, 18, 60, 0.2), 0px 0px 0px 1px rgba(255, 255, 255, 1), 0px 0px 0px 3px rgba(59, 130, 246, 0.6)", | ||
"--elevation-tooltip": "0px 0px 0px 1px rgba(3, 7, 18, 0.08), 0px 4px 8px 0px rgba(3, 7, 18, 0.08)", | ||
"--elevation-card-hover": "0px 0px 0px 1px rgba(3, 7, 18, 0.08), 0px 1px 2px -1px rgba(3, 7, 18, 0.08), 0px 2px 8px 0px rgba(3, 7, 18, 0.1)", | ||
"--elevation-card-rest": "0px 0px 0px 1px rgba(3, 7, 18, 0.08), 0px 1px 2px -1px rgba(3, 7, 18, 0.08), 0px 2px 4px 0px rgba(3, 7, 18, 0.04)", | ||
"--details-contrast-on-bg-interactive": "0px 1px 2px 0px rgba(30, 58, 138, 0.6)" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"extends": "@medusajs/tsconfig-ui/base.json", | ||
"include": ["src"], | ||
"exclude": ["dist", "build", "node_modules"] | ||
} |
Oops, something went wrong.