@planningcenter/doxy 1.0.0 → 1.2.0

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.
Files changed (37) hide show
  1. package/README.md +18 -0
  2. package/dist/build-output/ts/color-tokens.d.ts +777 -0
  3. package/dist/build-output/ts/color-tokens.d.ts.map +1 -0
  4. package/dist/build-output/ts/color-tokens.js +316 -0
  5. package/dist/build-output/ts/color-tokens.js.map +1 -0
  6. package/dist/build-output/ts/index.d.ts +1 -0
  7. package/dist/build-output/ts/index.d.ts.map +1 -1
  8. package/dist/build-output/ts/index.js +1 -0
  9. package/dist/build-output/ts/index.js.map +1 -1
  10. package/dist/build-output/ts/react-native-tokens-dark.d.ts +39 -1
  11. package/dist/build-output/ts/react-native-tokens-dark.d.ts.map +1 -1
  12. package/dist/build-output/ts/react-native-tokens-dark.js +39 -1
  13. package/dist/build-output/ts/react-native-tokens-dark.js.map +1 -1
  14. package/dist/build-output/ts/react-native-tokens-light.d.ts +40 -2
  15. package/dist/build-output/ts/react-native-tokens-light.d.ts.map +1 -1
  16. package/dist/build-output/ts/react-native-tokens-light.js +40 -2
  17. package/dist/build-output/ts/react-native-tokens-light.js.map +1 -1
  18. package/dist/build-output/ts/tokens-by-theme-set.d.ts +1 -1
  19. package/dist/build-output/ts/tokens-by-theme-set.js +1 -1
  20. package/dist/build-output/ts/tokens-by-theme-set.js.map +1 -1
  21. package/dist/build-output/ts/tokens.d.ts +40 -2
  22. package/dist/build-output/ts/tokens.d.ts.map +1 -1
  23. package/dist/build-output/ts/tokens.js +40 -2
  24. package/dist/build-output/ts/tokens.js.map +1 -1
  25. package/dist/build-output/ts/types/react-native-types.d.ts +38 -0
  26. package/dist/build-output/ts/types/react-native-types.d.ts.map +1 -1
  27. package/dist/index.css +90 -6
  28. package/dist/index.css.map +1 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +1 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/tokens-dark.css +49 -3
  34. package/dist/tokens-dark.css.map +1 -1
  35. package/dist/tokens.css +90 -6
  36. package/dist/tokens.css.map +1 -1
  37. package/package.json +10 -2
package/README.md CHANGED
@@ -107,6 +107,24 @@ import {} from "@planningcenter/doxy/react-native-tokens-dark"
107
107
  import {} from "@planningcenter/doxy/react-native-tokens-light"
108
108
  ```
109
109
 
110
+ ### Forcing light or dark mode on a subtree
111
+
112
+ By default, tokens respond to the root-level color mode (`data-color-mode` or `data-color-scheme`). To force a specific mode on any element and its descendants, use the `data-doxy-color-mode` attribute:
113
+
114
+ ```HTML
115
+ <!-- Force dark mode regardless of root color mode -->
116
+ <div data-doxy-color-mode="dark">
117
+ <!-- All Doxy tokens here resolve to their dark values -->
118
+
119
+ <!-- Force light mode back inside a dark section -->
120
+ <div data-doxy-color-mode="light">
121
+ <!-- Doxy tokens here resolve to their light values -->
122
+ </div>
123
+ </div>
124
+ ```
125
+
126
+ This is useful for UI that needs to render in a fixed color mode independent of the user's system theme or the application's global setting.
127
+
110
128
  ### For All applications
111
129
 
112
130
  ```TS