@atb-as/theme 11.0.2-alpha.0 → 11.0.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,10 +22,10 @@ console.log(themes.light.colors.background_0);
22
22
  ### Usage CSS
23
23
 
24
24
  > ⚠️ We're currently transitioning to a new variable structure.
25
- > Importing CSS from `../theme-fs/..` applies variables to `:root`.
25
+ > Importing CSS from `../theme-fs/..` applies variables to `data-theme["auto"]`.
26
26
  > The theme follows the device preference.
27
27
  >
28
- > This behaviour can be overwritten by explicitly setting `.light` or `.dark`
28
+ > This behaviour can be overwritten by explicitly setting `data-theme["light"]` or `data-theme["dark"]`
29
29
  > on an element. All children will follow that specific theme.
30
30
 
31
31
  Or you could import CSS files or as CSS Modules. The actual content is currently the same, but named differently to be imported by CSS modules.
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .dark, :root { color-scheme: dark; }
6
- .dark, :root {
5
+ [data-theme="dark"], [data-theme="auto"] { color-scheme: dark; }
6
+ [data-theme="dark"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e1e7eb;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .light, :root { color-scheme: light; }
6
- .light, :root {
5
+ [data-theme="light"], [data-theme="auto"] { color-scheme: light; }
6
+ [data-theme="light"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e1e7eb;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  /* Import dark mode */
6
- @import url('dark.css') layer(theme.dark);
6
+ @import url('dark.css');
7
7
  /* Import light mode */
8
- @import url('light.css') layer(theme.light);
8
+ @import url('light.css');
9
9
  /* Override light mode if the user prefers the dark color scheme */
10
- @import url('dark.css') layer(theme.dark-override) (prefers-color-scheme: dark);
10
+ @import url('dark.css') (prefers-color-scheme: dark);
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .dark, :root { color-scheme: dark; }
6
- .dark, :root {
5
+ [data-theme="dark"], [data-theme="auto"] { color-scheme: dark; }
6
+ [data-theme="dark"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e1e7eb;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .light, :root { color-scheme: light; }
6
- .light, :root {
5
+ [data-theme="light"], [data-theme="auto"] { color-scheme: light; }
6
+ [data-theme="light"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e1e7eb;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  /* Import dark mode */
6
- @import url('dark.css') layer(theme.dark);
6
+ @import url('dark.css');
7
7
  /* Import light mode */
8
- @import url('light.css') layer(theme.light);
8
+ @import url('light.css');
9
9
  /* Override light mode if the user prefers the dark color scheme */
10
- @import url('dark.css') layer(theme.dark-override) (prefers-color-scheme: dark);
10
+ @import url('dark.css') (prefers-color-scheme: dark);
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .dark, :root { color-scheme: dark; }
6
- .dark, :root {
5
+ [data-theme="dark"], [data-theme="auto"] { color-scheme: dark; }
6
+ [data-theme="dark"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e6e6e6;
9
9
  --color-foreground-light-disabled: #b3b3b3;
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .light, :root { color-scheme: light; }
6
- .light, :root {
5
+ [data-theme="light"], [data-theme="auto"] { color-scheme: light; }
6
+ [data-theme="light"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e6e6e6;
9
9
  --color-foreground-light-disabled: #b3b3b3;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  /* Import dark mode */
6
- @import url('dark.css') layer(theme.dark);
6
+ @import url('dark.css');
7
7
  /* Import light mode */
8
- @import url('light.css') layer(theme.light);
8
+ @import url('light.css');
9
9
  /* Override light mode if the user prefers the dark color scheme */
10
- @import url('dark.css') layer(theme.dark-override) (prefers-color-scheme: dark);
10
+ @import url('dark.css') (prefers-color-scheme: dark);
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .dark, :root { color-scheme: dark; }
6
- .dark, :root {
5
+ [data-theme="dark"], [data-theme="auto"] { color-scheme: dark; }
6
+ [data-theme="dark"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e3e5e6;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .light, :root { color-scheme: light; }
6
- .light, :root {
5
+ [data-theme="light"], [data-theme="auto"] { color-scheme: light; }
6
+ [data-theme="light"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e3e5e6;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  /* Import dark mode */
6
- @import url('dark.css') layer(theme.dark);
6
+ @import url('dark.css');
7
7
  /* Import light mode */
8
- @import url('light.css') layer(theme.light);
8
+ @import url('light.css');
9
9
  /* Override light mode if the user prefers the dark color scheme */
10
- @import url('dark.css') layer(theme.dark-override) (prefers-color-scheme: dark);
10
+ @import url('dark.css') (prefers-color-scheme: dark);
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .dark, :root { color-scheme: dark; }
6
- .dark, :root {
5
+ [data-theme="dark"], [data-theme="auto"] { color-scheme: dark; }
6
+ [data-theme="dark"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #dae2e4;
9
9
  --color-foreground-light-disabled: #8fa9af;
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .light, :root { color-scheme: light; }
6
- .light, :root {
5
+ [data-theme="light"], [data-theme="auto"] { color-scheme: light; }
6
+ [data-theme="light"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #dae2e4;
9
9
  --color-foreground-light-disabled: #8fa9af;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  /* Import dark mode */
6
- @import url('dark.css') layer(theme.dark);
6
+ @import url('dark.css');
7
7
  /* Import light mode */
8
- @import url('light.css') layer(theme.light);
8
+ @import url('light.css');
9
9
  /* Override light mode if the user prefers the dark color scheme */
10
- @import url('dark.css') layer(theme.dark-override) (prefers-color-scheme: dark);
10
+ @import url('dark.css') (prefers-color-scheme: dark);
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .dark, :root { color-scheme: dark; }
6
- .dark, :root {
5
+ [data-theme="dark"], [data-theme="auto"] { color-scheme: dark; }
6
+ [data-theme="dark"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e3e5e6;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .light, :root { color-scheme: light; }
6
- .light, :root {
5
+ [data-theme="light"], [data-theme="auto"] { color-scheme: light; }
6
+ [data-theme="light"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e3e5e6;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  /* Import dark mode */
6
- @import url('dark.css') layer(theme.dark);
6
+ @import url('dark.css');
7
7
  /* Import light mode */
8
- @import url('light.css') layer(theme.light);
8
+ @import url('light.css');
9
9
  /* Override light mode if the user prefers the dark color scheme */
10
- @import url('dark.css') layer(theme.dark-override) (prefers-color-scheme: dark);
10
+ @import url('dark.css') (prefers-color-scheme: dark);
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .dark, :root { color-scheme: dark; }
6
- .dark, :root {
5
+ [data-theme="dark"], [data-theme="auto"] { color-scheme: dark; }
6
+ [data-theme="dark"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e1e7eb;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -2,8 +2,8 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
 
5
- .light, :root { color-scheme: light; }
6
- .light, :root {
5
+ [data-theme="light"], [data-theme="auto"] { color-scheme: light; }
6
+ [data-theme="light"], [data-theme="auto"] {
7
7
  --color-foreground-light-primary: #ffffff;
8
8
  --color-foreground-light-secondary: #e1e7eb;
9
9
  --color-foreground-light-disabled: #a9aeb1;
@@ -3,8 +3,8 @@
3
3
  */
4
4
 
5
5
  /* Import dark mode */
6
- @import url('dark.css') layer(theme.dark);
6
+ @import url('dark.css');
7
7
  /* Import light mode */
8
- @import url('light.css') layer(theme.light);
8
+ @import url('light.css');
9
9
  /* Override light mode if the user prefers the dark color scheme */
10
- @import url('dark.css') layer(theme.dark-override) (prefers-color-scheme: dark);
10
+ @import url('dark.css') (prefers-color-scheme: dark);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atb-as/theme",
3
- "version": "11.0.2-alpha.0",
3
+ "version": "11.0.2-alpha.1",
4
4
  "private": false,
5
5
  "description": "AtB Design System Colors",
6
6
  "license": "EUPL-1.2",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "f53282ca2c1d50fedc352b0441a6cf0f957d57dd"
39
+ "gitHead": "7b368f75cd13f2bfa011c4f679d1bf3d0e71212c"
40
40
  }