@cascivo/tokens 0.3.1 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascivo/tokens",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "private": false,
5
5
  "description": "Three-level CSS design tokens (primitive → semantic → component)",
6
6
  "keywords": [
package/src/index.css CHANGED
@@ -214,6 +214,37 @@
214
214
  --cascivo-chart-grid: var(--cascivo-gray-200);
215
215
  --cascivo-chart-axis: var(--cascivo-gray-400);
216
216
 
217
+ /* ── Code Editor (@cascivo/editor) ──────────────────────────
218
+ Defined once here, not per-theme, to keep theme token parity. Chrome and
219
+ the syntax palette reference theme-overridden semantic/chart tokens, so
220
+ they adapt across light/dark/warm (and every theme) automatically; the
221
+ literal fallbacks keep a theme-less `@cascivo/editor` import readable. */
222
+
223
+ /* Chrome */
224
+ --cascivo-editor-bg: var(--cascivo-color-surface, oklch(0.985 0.002 264));
225
+ --cascivo-editor-fg: var(--cascivo-color-foreground, oklch(0.205 0.005 264));
226
+ --cascivo-editor-gutter-bg: var(--cascivo-color-surface-2, oklch(0.967 0.003 264));
227
+ --cascivo-editor-gutter-fg: var(--cascivo-color-text-muted, oklch(0.55 0.018 264));
228
+ --cascivo-editor-current-line: var(--cascivo-color-active-bg, oklch(0.55 0.02 264 / 8%));
229
+ --cascivo-editor-selection: var(--cascivo-color-accent-muted, oklch(0.882 0.095 250));
230
+ --cascivo-editor-border: var(--cascivo-color-border, oklch(0.928 0.006 264));
231
+
232
+ /* Syntax palette — one token per TokenKind */
233
+ --cascivo-editor-syntax-keyword: var(--cascivo-color-accent, oklch(0.52 0.2 250));
234
+ --cascivo-editor-syntax-string: var(--cascivo-chart-3, oklch(0.52 0.13 150));
235
+ --cascivo-editor-syntax-number: var(--cascivo-chart-6, oklch(0.55 0.16 40));
236
+ --cascivo-editor-syntax-comment: var(--cascivo-color-foreground-muted, oklch(0.55 0.018 264));
237
+ --cascivo-editor-syntax-function: var(--cascivo-chart-5, oklch(0.5 0.16 265));
238
+ --cascivo-editor-syntax-type: var(--cascivo-chart-7, oklch(0.52 0.15 320));
239
+ --cascivo-editor-syntax-operator: var(--cascivo-color-foreground-muted, oklch(0.5 0.04 264));
240
+ --cascivo-editor-syntax-punctuation: var(--cascivo-color-text-subtle, oklch(0.446 0.018 264));
241
+ --cascivo-editor-syntax-variable: var(--cascivo-editor-fg);
242
+ --cascivo-editor-syntax-tag: var(--cascivo-color-accent, oklch(0.52 0.2 250));
243
+ --cascivo-editor-syntax-attr: var(--cascivo-chart-6, oklch(0.55 0.16 40));
244
+ --cascivo-editor-syntax-regexp: var(--cascivo-chart-3, oklch(0.52 0.13 150));
245
+ --cascivo-editor-syntax-boolean: var(--cascivo-chart-6, oklch(0.55 0.16 40));
246
+ --cascivo-editor-syntax-property: var(--cascivo-chart-2, oklch(0.5 0.13 240));
247
+
217
248
  /* ── Brand (apps/logo/OG only — never used in component CSS) ── */
218
249
  --cascivo-brand-primary: oklch(
219
250
  0.55 0.15 240
package/src/tokens.d.ts CHANGED
@@ -98,6 +98,27 @@ export type CascivoToken =
98
98
  | '--cascivo-ease-in'
99
99
  | '--cascivo-ease-in-out'
100
100
  | '--cascivo-ease-out'
101
+ | '--cascivo-editor-bg'
102
+ | '--cascivo-editor-border'
103
+ | '--cascivo-editor-current-line'
104
+ | '--cascivo-editor-fg'
105
+ | '--cascivo-editor-gutter-bg'
106
+ | '--cascivo-editor-gutter-fg'
107
+ | '--cascivo-editor-selection'
108
+ | '--cascivo-editor-syntax-attr'
109
+ | '--cascivo-editor-syntax-boolean'
110
+ | '--cascivo-editor-syntax-comment'
111
+ | '--cascivo-editor-syntax-function'
112
+ | '--cascivo-editor-syntax-keyword'
113
+ | '--cascivo-editor-syntax-number'
114
+ | '--cascivo-editor-syntax-operator'
115
+ | '--cascivo-editor-syntax-property'
116
+ | '--cascivo-editor-syntax-punctuation'
117
+ | '--cascivo-editor-syntax-regexp'
118
+ | '--cascivo-editor-syntax-string'
119
+ | '--cascivo-editor-syntax-tag'
120
+ | '--cascivo-editor-syntax-type'
121
+ | '--cascivo-editor-syntax-variable'
101
122
  | '--cascivo-focus-ring'
102
123
  | '--cascivo-font-bold'
103
124
  | '--cascivo-font-display'
package/tokens.json CHANGED
@@ -1079,6 +1079,153 @@
1079
1079
  "value": "0.5",
1080
1080
  "canonical": true
1081
1081
  },
1082
+ {
1083
+ "name": "--cascivo-editor-bg",
1084
+ "category": "other",
1085
+ "role": "editor-bg",
1086
+ "value": "var(--cascivo-color-surface, oklch(0.985 0.002 264))",
1087
+ "canonical": true
1088
+ },
1089
+ {
1090
+ "name": "--cascivo-editor-border",
1091
+ "category": "other",
1092
+ "role": "editor-border",
1093
+ "value": "var(--cascivo-color-border, oklch(0.928 0.006 264))",
1094
+ "canonical": true
1095
+ },
1096
+ {
1097
+ "name": "--cascivo-editor-current-line",
1098
+ "category": "other",
1099
+ "role": "editor-current-line",
1100
+ "value": "var(--cascivo-color-active-bg, oklch(0.55 0.02 264 / 8%))",
1101
+ "canonical": true
1102
+ },
1103
+ {
1104
+ "name": "--cascivo-editor-fg",
1105
+ "category": "other",
1106
+ "role": "editor-fg",
1107
+ "value": "var(--cascivo-color-foreground, oklch(0.205 0.005 264))",
1108
+ "canonical": true
1109
+ },
1110
+ {
1111
+ "name": "--cascivo-editor-gutter-bg",
1112
+ "category": "other",
1113
+ "role": "editor-gutter-bg",
1114
+ "value": "var(--cascivo-color-surface-2, oklch(0.967 0.003 264))",
1115
+ "canonical": true
1116
+ },
1117
+ {
1118
+ "name": "--cascivo-editor-gutter-fg",
1119
+ "category": "other",
1120
+ "role": "editor-gutter-fg",
1121
+ "value": "var(--cascivo-color-text-muted, oklch(0.55 0.018 264))",
1122
+ "canonical": true
1123
+ },
1124
+ {
1125
+ "name": "--cascivo-editor-selection",
1126
+ "category": "other",
1127
+ "role": "editor-selection",
1128
+ "value": "var(--cascivo-color-accent-muted, oklch(0.882 0.095 250))",
1129
+ "canonical": true
1130
+ },
1131
+ {
1132
+ "name": "--cascivo-editor-syntax-attr",
1133
+ "category": "other",
1134
+ "role": "editor-syntax-attr",
1135
+ "value": "var(--cascivo-chart-6, oklch(0.55 0.16 40))",
1136
+ "canonical": true
1137
+ },
1138
+ {
1139
+ "name": "--cascivo-editor-syntax-boolean",
1140
+ "category": "other",
1141
+ "role": "editor-syntax-boolean",
1142
+ "value": "var(--cascivo-chart-6, oklch(0.55 0.16 40))",
1143
+ "canonical": true
1144
+ },
1145
+ {
1146
+ "name": "--cascivo-editor-syntax-comment",
1147
+ "category": "other",
1148
+ "role": "editor-syntax-comment",
1149
+ "value": "var(--cascivo-color-foreground-muted, oklch(0.55 0.018 264))",
1150
+ "canonical": true
1151
+ },
1152
+ {
1153
+ "name": "--cascivo-editor-syntax-function",
1154
+ "category": "other",
1155
+ "role": "editor-syntax-function",
1156
+ "value": "var(--cascivo-chart-5, oklch(0.5 0.16 265))",
1157
+ "canonical": true
1158
+ },
1159
+ {
1160
+ "name": "--cascivo-editor-syntax-keyword",
1161
+ "category": "other",
1162
+ "role": "editor-syntax-keyword",
1163
+ "value": "var(--cascivo-color-accent, oklch(0.52 0.2 250))",
1164
+ "canonical": true
1165
+ },
1166
+ {
1167
+ "name": "--cascivo-editor-syntax-number",
1168
+ "category": "other",
1169
+ "role": "editor-syntax-number",
1170
+ "value": "var(--cascivo-chart-6, oklch(0.55 0.16 40))",
1171
+ "canonical": true
1172
+ },
1173
+ {
1174
+ "name": "--cascivo-editor-syntax-operator",
1175
+ "category": "other",
1176
+ "role": "editor-syntax-operator",
1177
+ "value": "var(--cascivo-color-foreground-muted, oklch(0.5 0.04 264))",
1178
+ "canonical": true
1179
+ },
1180
+ {
1181
+ "name": "--cascivo-editor-syntax-property",
1182
+ "category": "other",
1183
+ "role": "editor-syntax-property",
1184
+ "value": "var(--cascivo-chart-2, oklch(0.5 0.13 240))",
1185
+ "canonical": true
1186
+ },
1187
+ {
1188
+ "name": "--cascivo-editor-syntax-punctuation",
1189
+ "category": "other",
1190
+ "role": "editor-syntax-punctuation",
1191
+ "value": "var(--cascivo-color-text-subtle, oklch(0.446 0.018 264))",
1192
+ "canonical": true
1193
+ },
1194
+ {
1195
+ "name": "--cascivo-editor-syntax-regexp",
1196
+ "category": "other",
1197
+ "role": "editor-syntax-regexp",
1198
+ "value": "var(--cascivo-chart-3, oklch(0.52 0.13 150))",
1199
+ "canonical": true
1200
+ },
1201
+ {
1202
+ "name": "--cascivo-editor-syntax-string",
1203
+ "category": "other",
1204
+ "role": "editor-syntax-string",
1205
+ "value": "var(--cascivo-chart-3, oklch(0.52 0.13 150))",
1206
+ "canonical": true
1207
+ },
1208
+ {
1209
+ "name": "--cascivo-editor-syntax-tag",
1210
+ "category": "other",
1211
+ "role": "editor-syntax-tag",
1212
+ "value": "var(--cascivo-color-accent, oklch(0.52 0.2 250))",
1213
+ "canonical": true
1214
+ },
1215
+ {
1216
+ "name": "--cascivo-editor-syntax-type",
1217
+ "category": "other",
1218
+ "role": "editor-syntax-type",
1219
+ "value": "var(--cascivo-chart-7, oklch(0.52 0.15 320))",
1220
+ "canonical": true
1221
+ },
1222
+ {
1223
+ "name": "--cascivo-editor-syntax-variable",
1224
+ "category": "other",
1225
+ "role": "editor-syntax-variable",
1226
+ "value": "var(--cascivo-editor-fg)",
1227
+ "canonical": true
1228
+ },
1082
1229
  {
1083
1230
  "name": "--cascivo-hover-opacity",
1084
1231
  "category": "other",