Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,23 @@ const BRANDS = [

const DECL_RE = /^\s*(--[a-z0-9-]+):\s*([^;]+);/gm

/*
* Figma exports neutral greys as `oklch(L 0 0)`. A hue of 0 is red, so any
* `oklch(from …)` or `color-mix(in oklch, …)` derived from a grey drifts
* toward red. `none` marks the hue as missing and keeps derived tints neutral.
*/
const GREY_HUE_RE = /oklch\(\s*([^\s)]+)\s+0\s+0(?=\s*[/)])/g

function normalizeValue(value) {
return value.replace(GREY_HUE_RE, "oklch($1 0 none")
}

function parseDecls(relDir) {
const css = readFileSync(join(FIGMA_DIR, relDir, "variables.css"), "utf8")
const out = new Map()
DECL_RE.lastIndex = 0
for (const m of css.matchAll(DECL_RE)) {
out.set(m[1], m[2].trim())
out.set(m[1], normalizeValue(m[2].trim()))
}
return out
}
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/accordion-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
collapsible sections using the Zag.js-backed compound anatomy, supported
variant, shadow, size, value, multiple, and collapsible props.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/button-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
library: "@techsio/ui-kit"
library_version: "0.3.2"
component: "Button"
component_version: "0.3.2"
component_version: "0.3.3"
requires: "component-usage-ux app-token-overrides ux-guidelines"
sources: "libs/ui/src/atoms/button.tsx libs/ui/src/tokens/components/atoms/_button.css libs/ui/stories/atoms/button.stories.tsx libs/ui/src/atoms/button.figma.ts"
---
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/cascade-select-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
compound parts, parent or multiple selection, validation, and keyboard
navigation.
metadata:
component_version: "1.0.1"
component_version: "1.0.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/checkbox-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
@techsio/ui-kit Checkbox atom, including invalid and indeterminate states,
while preferring form molecules for labeled form rows.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/color-select-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
for choosing color swatches with supported layout, size, radius, disabled
state, selected state, labels, counts, and single/multiple roles.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/combobox-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
searchable selection with Zag.js collection behavior, controlled value/input,
multiple mode, validation status, clear trigger, and token styling.
metadata:
component_version: "1.3.0"
component_version: "1.3.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/data-table-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: >
row reorder, tree/expanding rows, inline edit, colSpan/rowSpan, virtualization /
infinite scroll and pagination — every feature behind a flag with a callback.
metadata:
component_version: "1.2.0"
component_version: "1.2.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/date-picker-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
transactional time entry, single or range typed values, and canonical form
serialization through one integrated field.
metadata:
component_version: "1.1.1"
component_version: "1.1.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/dialog-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
modal dialogs, alert dialogs, drawers, actions, focus management, placement,
size, and close behavior backed by Zag.js.
metadata:
component_version: "1.0.1"
component_version: "1.0.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/file-upload-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
select, validate, preview, and manage local File objects through the Zag.js
compound API, including accepted/rejected files and native form behavior.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/form-checkbox-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
for labeled checkbox fields with Zag.js checked/indeterminate state, help
text, validation status, required, disabled, and read-only props.
metadata:
component_version: "1.1.1"
component_version: "1.1.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/gallery-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
controlled page, orientation, thumbnail image adapters, thumbnail aria labels,
empty state, and NextImage support.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/input-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
@techsio/ui-kit Input atom, including valid size, variant, embedded button
spacing, and token-first validation styling.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/numeric-input-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
numeric compatibility or controlled string drafts, locale formatting, min/max/step, and token-first
styling.
metadata:
component_version: "1.1.0"
component_version: "1.1.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/phone-input-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
hidden E.164 form value, native validation, validation status, and compound
country picker slots.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/popover-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
anchored non-blocking content using Zag.js compound parts, placement,
portalling, close behavior, arrow, title, description, and close trigger.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/radio-card-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
prominent single-choice cards with Zag.js radio behavior, label, item,
hidden input, control, text, description, addon, indicator, and status text.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/select-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
trigger, value text, clear trigger, item groups, item indicators, validation
status, size, and multiple mode.
metadata:
component_version: "1.1.0"
component_version: "1.1.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/skeleton-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
loading placeholders using Root, Circle, Text, and Rectangle compound parts
with token-backed variants, sizes, and animation speeds.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/slider-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
markers, value text, orientation, min/max/step, validation status, and token
styling.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/steps-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
panels, progress, navigation triggers, linear flow, controlled step, and
variants.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/table-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
headers, numeric cells, selected rows, variants, interactive rows, sticky
header/first column, column borders, and size props.
metadata:
component_version: "1.2.0"
component_version: "1.2.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/textarea-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
multi-line text entry with valid variant, size, resize, readonly styling, and
token-first validation.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/toast-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
portal, useToast, toast types, title, description, close trigger, and token
styling.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/tour-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
tooltip/dialog/floating steps, target resolution, interactive wait effects,
imperative control, shared action buttons, cleanup and app-owned onboarding policy.
metadata:
component_version: "1.0.2"
component_version: "1.0.3"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/agent-plugin/skills/tree-view-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
item parts, selection behavior, icons, indentation, expansion, selection, and
keyboard/typeahead support.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/accordion-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
collapsible sections using the Zag.js-backed compound anatomy, supported
variant, shadow, size, value, multiple, and collapsible props.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/button-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
library: "@techsio/ui-kit"
library_version: "0.3.2"
component: "Button"
component_version: "0.3.2"
component_version: "0.3.3"
requires:
- component-usage-ux
- app-token-overrides
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/cascade-select-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
compound parts, parent or multiple selection, validation, and keyboard
navigation.
metadata:
component_version: "1.0.1"
component_version: "1.0.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/checkbox-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
@techsio/ui-kit Checkbox atom, including invalid and indeterminate states,
while preferring form molecules for labeled form rows.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/color-select-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
for choosing color swatches with supported layout, size, radius, disabled
state, selected state, labels, counts, and single/multiple roles.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/combobox-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
searchable selection with Zag.js collection behavior, controlled value/input,
multiple mode, validation status, clear trigger, and token styling.
metadata:
component_version: "1.3.0"
component_version: "1.3.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/data-table-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: >
row reorder, tree/expanding rows, inline edit, colSpan/rowSpan, virtualization /
infinite scroll and pagination — every feature behind a flag with a callback.
metadata:
component_version: "1.2.0"
component_version: "1.2.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/date-picker-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
transactional time entry, single or range typed values, and canonical form
serialization through one integrated field.
metadata:
component_version: "1.1.1"
component_version: "1.1.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/dialog-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
modal dialogs, alert dialogs, drawers, actions, focus management, placement,
size, and close behavior backed by Zag.js.
metadata:
component_version: "1.0.1"
component_version: "1.0.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/file-upload-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
select, validate, preview, and manage local File objects through the Zag.js
compound API, including accepted/rejected files and native form behavior.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/form-checkbox-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
for labeled checkbox fields with Zag.js checked/indeterminate state, help
text, validation status, required, disabled, and read-only props.
metadata:
component_version: "1.1.1"
component_version: "1.1.2"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/gallery-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
controlled page, orientation, thumbnail image adapters, thumbnail aria labels,
empty state, and NextImage support.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/input-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
@techsio/ui-kit Input atom, including valid size, variant, embedded button
spacing, and token-first validation styling.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/numeric-input-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
numeric compatibility or controlled string drafts, locale formatting, min/max/step, and token-first
styling.
metadata:
component_version: "1.1.0"
component_version: "1.1.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
2 changes: 1 addition & 1 deletion libs/ui/skills/phone-input-usage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >
hidden E.164 form value, native validation, validation status, and compound
country picker slots.
metadata:
component_version: "1.0.0"
component_version: "1.0.1"
type: "core"
library: "@techsio/ui-kit"
library_version: "0.3.2"
Expand Down
Loading
Loading