@kinetixui/tokens 0.4.1 → 0.4.2

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.
@@ -59,6 +59,6 @@ object KinetixTheme {
59
59
  val colorSuccessForeground = Color(0xfff1f3f1)
60
60
  val colorTertiary = Color(0xffb0b0b0)
61
61
  val colorTertiaryForeground = Color(0xfff0f7ff)
62
- val colorWarning = Color(0xfff97907)
62
+ val colorWarning = Color(0xff7f5b21)
63
63
  val colorWarningForeground = Color(0xfffff8eb)
64
64
  }
@@ -126,7 +126,7 @@
126
126
  <color name="color_destructive_foreground">#fffef3f2</color>
127
127
  <color name="color_success">#ff5d6d5c</color>
128
128
  <color name="color_success_foreground">#fff1f3f1</color>
129
- <color name="color_warning">#fff97907</color>
129
+ <color name="color_warning">#ff7f5b21</color>
130
130
  <color name="color_warning_foreground">#fffff8eb</color>
131
131
  <color name="color_border">#ff92b2c8</color>
132
132
  <color name="color_input">#ff92b2c8</color>
@@ -165,6 +165,6 @@ class KinetixColors {
165
165
  static const colorTaupe950 = Color(0xFF4B3D34);
166
166
  static const colorTertiary = Color(0xFFB0B0B0); /** figma: tertiary — switch off-track */
167
167
  static const colorTertiaryForeground = Color(0xFFF0F7FF);
168
- static const colorWarning = Color(0xFFF97907); /** figma: onWarningContainer #f97907 (only warning role Figma exposes at full chroma) */
168
+ static const colorWarning = Color(0xFF7F5B21); /** a11y: Figma onWarningContainer #f97907 is 2.7:1 as text on the page / 2.6:1 in the Tag warning variant fails WCAG AA. amber.800 #7f5b21 clears 6.1:1 / 5.8:1. Dark --warning stays bright (amber.400). See ACCESSIBILITY-AUDIT.md. */
169
169
  static const colorWarningForeground = Color(0xFFFFF8EB); /** figma: warningContainer #fff8eb */
170
170
  }
@@ -61,6 +61,6 @@ class KinetixTheme {
61
61
  static const colorSuccessForeground = Color(0xFFF1F3F1); /** synth */
62
62
  static const colorTertiary = Color(0xFFB0B0B0); /** figma: tertiary — switch off-track */
63
63
  static const colorTertiaryForeground = Color(0xFFF0F7FF);
64
- static const colorWarning = Color(0xFFF97907); /** figma: onWarningContainer #f97907 (only warning role Figma exposes at full chroma) */
64
+ static const colorWarning = Color(0xFF7F5B21); /** a11y: Figma onWarningContainer #f97907 is 2.7:1 as text on the page / 2.6:1 in the Tag warning variant fails WCAG AA. amber.800 #7f5b21 clears 6.1:1 / 5.8:1. Dark --warning stays bright (amber.400). See ACCESSIBILITY-AUDIT.md. */
65
65
  static const colorWarningForeground = Color(0xFFFFF8EB); /** figma: warningContainer #fff8eb */
66
66
  }
@@ -25,7 +25,7 @@ class KinetixColorScheme {
25
25
  static const destructiveForeground = Color(0xFFFEF3F2);
26
26
  static const success = Color(0xFF5D6D5C);
27
27
  static const successForeground = Color(0xFFF1F3F1);
28
- static const warning = Color(0xFFF97907);
28
+ static const warning = Color(0xFF7F5B21);
29
29
  static const warningForeground = Color(0xFFFFF8EB);
30
30
  static const border = Color(0xFF92B2C8);
31
31
  static const input = Color(0xFF92B2C8);
@@ -162,6 +162,6 @@ public enum KinetixColor {
162
162
  public static let colorTaupe950 = UIColor(red: 0.294, green: 0.239, blue: 0.204, alpha: 1)
163
163
  public static let colorTertiary = UIColor(red: 0.690, green: 0.690, blue: 0.690, alpha: 1) /** figma: tertiary — switch off-track */
164
164
  public static let colorTertiaryForeground = UIColor(red: 0.941, green: 0.969, blue: 1.000, alpha: 1)
165
- public static let colorWarning = UIColor(red: 0.976, green: 0.475, blue: 0.027, alpha: 1) /** figma: onWarningContainer #f97907 (only warning role Figma exposes at full chroma) */
165
+ public static let colorWarning = UIColor(red: 0.498, green: 0.357, blue: 0.129, alpha: 1) /** a11y: Figma onWarningContainer #f97907 is 2.7:1 as text on the page / 2.6:1 in the Tag warning variant fails WCAG AA. amber.800 #7f5b21 clears 6.1:1 / 5.8:1. Dark --warning stays bright (amber.400). See ACCESSIBILITY-AUDIT.md. */
166
166
  public static let colorWarningForeground = UIColor(red: 1.000, green: 0.973, blue: 0.922, alpha: 1) /** figma: warningContainer #fff8eb */
167
167
  }
@@ -23,7 +23,7 @@ public enum KinetixColorsSwiftUI {
23
23
  public static let destructiveForeground = Color(red: 0.996, green: 0.953, blue: 0.949)
24
24
  public static let success = Color(red: 0.365, green: 0.427, blue: 0.361)
25
25
  public static let successForeground = Color(red: 0.945, green: 0.953, blue: 0.945)
26
- public static let warning = Color(red: 0.976, green: 0.475, blue: 0.027)
26
+ public static let warning = Color(red: 0.498, green: 0.357, blue: 0.129)
27
27
  public static let warningForeground = Color(red: 1, green: 0.973, blue: 0.922)
28
28
  public static let border = Color(red: 0.573, green: 0.698, blue: 0.784)
29
29
  public static let input = Color(red: 0.573, green: 0.698, blue: 0.784)
@@ -58,6 +58,6 @@ public class KinetixTheme {
58
58
  public static let colorSuccessForeground = UIColor(red: 0.945, green: 0.953, blue: 0.945, alpha: 1) /** synth */
59
59
  public static let colorTertiary = UIColor(red: 0.690, green: 0.690, blue: 0.690, alpha: 1) /** figma: tertiary — switch off-track */
60
60
  public static let colorTertiaryForeground = UIColor(red: 0.941, green: 0.969, blue: 1.000, alpha: 1)
61
- public static let colorWarning = UIColor(red: 0.976, green: 0.475, blue: 0.027, alpha: 1) /** figma: onWarningContainer #f97907 (only warning role Figma exposes at full chroma) */
61
+ public static let colorWarning = UIColor(red: 0.498, green: 0.357, blue: 0.129, alpha: 1) /** a11y: Figma onWarningContainer #f97907 is 2.7:1 as text on the page / 2.6:1 in the Tag warning variant fails WCAG AA. amber.800 #7f5b21 clears 6.1:1 / 5.8:1. Dark --warning stays bright (amber.400). See ACCESSIBILITY-AUDIT.md. */
62
62
  public static let colorWarningForeground = UIColor(red: 1.000, green: 0.973, blue: 0.922, alpha: 1) /** figma: warningContainer #fff8eb */
63
63
  }
@@ -0,0 +1,8 @@
1
+ /* Generated by Style Dictionary — shadow + typography composites. */
2
+
3
+ .dark {
4
+ --shadow-focus: 0 0 0 1px #92b2c8, 0 0 0 4px #92b2c852;
5
+ --shadow-focus-destructive: 0 0 0 1px #dd6a6a, 0 0 0 4px #dd6a6a52;
6
+ --shadow-focus-success: 0 0 0 1px #90a08f, 0 0 0 4px #90a08f52;
7
+ --shadow-focus-warning: 0 0 0 1px #ffc975, 0 0 0 4px #ffc97552;
8
+ }
@@ -196,7 +196,7 @@
196
196
  --destructive-foreground: var(--semantic-on-error); /** figma: onError #fef3f2 */
197
197
  --success: var(--green-600); /** synth: no Figma success token; green ramp step 6 (distinct from secondary) */
198
198
  --success-foreground: var(--green-50); /** synth */
199
- --warning: var(--semantic-on-warning-container); /** figma: onWarningContainer #f97907 (only warning role Figma exposes at full chroma) */
199
+ --warning: var(--amber-800); /** a11y: Figma onWarningContainer #f97907 is 2.7:1 as text on the page / 2.6:1 in the Tag warning variant fails WCAG AA. amber.800 #7f5b21 clears 6.1:1 / 5.8:1. Dark --warning stays bright (amber.400). See ACCESSIBILITY-AUDIT.md. */
200
200
  --warning-foreground: var(--semantic-warning-container); /** figma: warningContainer #fff8eb */
201
201
  --border: var(--blue-100); /** figma: outline #92b2c8 */
202
202
  --input: var(--blue-100); /** figma: outline #92b2c8 (same as border) */
@@ -139,7 +139,7 @@ declare const tokens: {
139
139
  "destructive-foreground": "#fef3f2",
140
140
  "success": "#5d6d5c",
141
141
  "success-foreground": "#f1f3f1",
142
- "warning": "#f97907",
142
+ "warning": "#7f5b21",
143
143
  "warning-foreground": "#fff8eb",
144
144
  "border": "#92b2c8",
145
145
  "input": "#92b2c8",
@@ -139,7 +139,7 @@ export const tokens = {
139
139
  "destructive-foreground": "#fef3f2",
140
140
  "success": "#5d6d5c",
141
141
  "success-foreground": "#f1f3f1",
142
- "warning": "#f97907",
142
+ "warning": "#7f5b21",
143
143
  "warning-foreground": "#fff8eb",
144
144
  "border": "#92b2c8",
145
145
  "input": "#92b2c8",
@@ -140,7 +140,7 @@ export const tokens = {
140
140
  "destructive-foreground": "#fef3f2",
141
141
  "success": "#5d6d5c",
142
142
  "success-foreground": "#f1f3f1",
143
- "warning": "#f97907",
143
+ "warning": "#7f5b21",
144
144
  "warning-foreground": "#fff8eb",
145
145
  "border": "#92b2c8",
146
146
  "input": "#92b2c8",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kinetixui/tokens",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "KinetixUI design tokens — CSS variables, a TypeScript object, and native SwiftUI / Jetpack Compose / Flutter text styles, compiled by Style Dictionary.",
5
5
  "keywords": [
6
6
  "design-tokens",
@@ -29,6 +29,7 @@
29
29
  "./css": "./dist/web/globals.css",
30
30
  "./css/dark": "./dist/web/globals.dark.css",
31
31
  "./css/extras": "./dist/web/extras.css",
32
+ "./css/extras/dark": "./dist/web/extras.dark.css",
32
33
  "./package.json": "./package.json"
33
34
  },
34
35
  "files": [