@maxio-com/design-tokens 3.5.1 → 3.5.3

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
@@ -7,11 +7,9 @@ Tokens exists in the form of CSS variables and are used to maintain a consistent
7
7
 
8
8
  For backwards compatibility, some of the primitive tokens are also available as JavaScript variables - however you should prefer using the CSS variables.
9
9
 
10
- The source of truth is located in Figma/Notion and is exported to this package.
10
+ The source of truth is located in Figma/Notion and is exported to this package.
11
11
  Learn more about the **Design Tokens** [here](https://www.notion.so/maxioevolution/Design-tokens-7e2081d708d6485396e3237cbb8028c7).
12
12
 
13
-
14
-
15
13
  ## Installation
16
14
 
17
15
  Design tokens are distributed as an npm package. You can install them using npm, yarn, or pnpm:
@@ -23,7 +21,7 @@ pnpm install @maxio/design-tokens
23
21
  To use the design tokens in your project, you can import the CSS file into your project:
24
22
 
25
23
  ```css
26
- @import "@maxio-com/design-tokens/variables.css";
24
+ @import '@maxio-com/design-tokens/variables.css';
27
25
  ```
28
26
 
29
27
  ## Backward compatibility
@@ -53,6 +51,8 @@ We use data attribute (`[data-maxio-mode="dark"]`) to toggle dark mode. It allow
53
51
  <div class="my-component" data-maxio-mode="dark">...</div>
54
52
  ```
55
53
 
54
+ You can nest modes (to achieve custom solutions), just use `data-maxio-mode="dark/light"` in your component tree.
55
+
56
56
  ## FAQ
57
57
 
58
58
  ### How do I use these tokens?
@@ -61,4 +61,4 @@ You can use these tokens by importing the CSS file into your project. You can th
61
61
 
62
62
  ### How do I update these tokens?
63
63
 
64
- You can update these tokens by modifying the CSS file in this package and submitting a PR.
64
+ You can update these tokens by modifying the CSS file in this package and submitting a PR. For more information, refer to the [How to Update Semantic Tokens](https://www.notion.so/maxioevolution/How-to-update-semantic-tokens-b5186ada4c434e5aaf1d671ef5664025?pvs=4) documentation.
@@ -1,4 +1,4 @@
1
- :root {
1
+ :root, [data-maxio-mode='light'] {
2
2
  /* privimitive colors - DEPRECATED */
3
3
  --maxio-white: #ffffff;
4
4
  --maxio-black: #000000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxio-com/design-tokens",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "Design Tokens definition",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "77178f7b98217ba3a8b2d52b39f52c5d15ae03c2"
31
+ "gitHead": "9bc9fed71df4e2c607b3ac2b31d8a8b80062a292"
32
32
  }