-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Component css packages #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 16 commits
b8408d5
0b2d336
3110837
1113716
7894aa2
c16862b
979b346
a74cdfa
7c8b652
428023f
54a8c9a
26b67f4
c4cf475
6b0cbed
24391d9
f95081a
49a8be2
2a6652e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| packages/@spectrum-icons/color/** | ||
| packages/@spectrum-icons/ui/** | ||
| packages/@spectrum-icons/workflow/** | ||
| packages/@adobe/spectrum-css/** | ||
| node_modules |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,3 +17,4 @@ storybook-static | |
|
|
||
| #allow | ||
| !.storybook-v3/lib | ||
| !packages/**/dist | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| * { | ||
| transition-property: none !important; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,7 @@ function getUniqueVars(vars) { | |
| function getVariableMappings(themes) { | ||
| let themeVars = {}; | ||
| for (let theme of themes) { | ||
| let values = getVars(`packages/@adobe/spectrum-css-temp/vars/spectrum-${theme}.css`); | ||
| let values = getVars(require.resolve(`@adobe/spectrum-css/dist/vars/spectrum-${theme}-unique.css`)); | ||
| let mappings = getUniqueVars(values); | ||
| themeVars[theme] = {values, mappings}; | ||
| } | ||
|
|
@@ -110,9 +110,9 @@ function getVariableMappings(themes) { | |
| return {mapping, vars, static}; | ||
| } | ||
|
|
||
| let themes = getVariableMappings(['dark', 'darkest', 'light', 'lightest', 'middark', 'midlight']); | ||
| let themes = getVariableMappings(['dark', 'darkest', 'light', 'lightest']); | ||
| let scales = getVariableMappings(['large', 'medium']); | ||
| let globals = getVars('packages/@adobe/spectrum-css-temp/vars/spectrum-global.css'); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you're using individually versioned components, you can refer to |
||
| let globals = getVars(require.resolve('@adobe/spectrum-css/dist/vars/spectrum-global-unique.css')); | ||
|
|
||
| exports.themes = themes.vars; | ||
| exports.scales = scales.vars; | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pay attention, needed for spectrum-css, not necessarily anything else, 🤷♂ ?