Releases: primer/primitives
v11.7.0
Minor Changes
-
#1349
4bedeb1Thanks @lukasoppermann! - Remove redundantlineBoxHeighttokensThe following tokens have been removed:
text-display-lineBoxHeight- Duplicatedtext-display-lineHeightvaluecontrol-xsmall-lineBoxHeightcontrol-small-lineBoxHeightcontrol-medium-lineBoxHeightcontrol-large-lineBoxHeightcontrol-xlarge-lineBoxHeight
These tokens were inconsistently defined (typography used unitless multipliers while controls used absolute dimensions) and were not providing clear value. The control sizing formula (
size = lineBoxHeight + 2 × paddingBlock) can be derived from existingsizeandpaddingBlocktokens. Breaking changes have been mitigated on the platform.
Patch Changes
-
#1344
cb7c706Thanks @lukasoppermann! - Consolidate focus outline tokens intosrc/tokens/component/focus.json5with consistent kebab-case naming (focus-outline-color,focus-outline-width,focus-outline-offset). Deprecated aliases for the old names are included for backward compatibility.Route focus dimension tokens (
--focus-outline-width,--focus-outline-offset,--outline-focus-offset,--outline-focus-width) tocss/functional/size/border.cssinstead of theme CSS files, since these values are static and don't vary by theme. -
#1345
35d9a90Thanks @lukasoppermann! - Removeshadow.floating.legacy. Reduceshadow.floating.smalllight mode border alpha from 0.5 to 0.25. -
#1346
7728903Thanks @copilot-swe-agent! - Update light-high-contrast fgColor tokens to custom hex values between scale levels 5 and 6Improves visual differentiation between status colors (open/closed/done) in the light high-contrast theme. The three affected tokens (fgColor.success, fgColor.danger, fgColor.done) previously resolved to base color scale level 6, making them too dark and visually indistinct. No single scale step satisfies both the 7:1 contrast minimum and chromatic distinction, so custom hex values interpolated between levels 5 and 6 are used instead, following the precedent set by dark high-contrast theme overrides.
v11.6.0
v11.5.1
v11.5.0
Minor Changes
-
#1319
dccf2afThanks @lukasoppermann! - Add z-index design tokens for managing stacking context. Introduces base z-index scale (0-600) and 8 semantic functional tokens:behind,default,sticky,dropdown,overlay,modal,popover, andskipLink. Includes LLM metadata with usage guidance and shadow-to-z-index alignment rules. -
#1315
8bb3e76Thanks @lukasoppermann! - Add some missing tokens that confused the AI -
#1320
6c1af22Thanks @lukasoppermann! - Add negative base size tokens (negative-2throughnegative-48) for sizes 2–48
Patch Changes
-
#1301
423b6e1Thanks @lukasoppermann! - Convert duration tokens to w3c -
#1318
4d0f257Thanks @lukasoppermann! - Fix dark mode contrast for controlTrack and controlKnob tokens. The track now recedes (darker) and the knob stands out (lighter) in all dark mode variants, fixing the inverted visual hierarchy in SegmentedControl and ToggleSwitch. -
#1308
135dd9bThanks @lukasoppermann! - Update shadow tokens to use W3C DTCG object format for dimension values- Shadow token dimension properties (
offsetX,offsetY,blur,spread) now use object format{ value: number, unit: "px" }instead of legacy strings like"1px" - Updated
shadowToCsstransformer to handle W3C dimension objects - Updated
ShadowTokenValuetype to requireDimensionTokenValuefor dimension properties - Legacy string format for shadow dimensions is no longer supported
- Shadow token dimension properties (
-
#1306
e4e355fThanks @lukasoppermann! - Adding metadata for:- shadow tokens
- display tokens
- ansi colors
- syntax colors
-
#1305
305c559Thanks @lukasoppermann! - Change dimension tokens to W3C DTCG format (breaking change)- The transformers
dimensionToRem,dimensionToRemPxArray, anddimensionToPixelUnitlessnow only accept W3C DTCG object-format dimension tokens. Legacy string-based dimension values are no longer supported and will throw errors. - In the W3C DTCG format, only
pxandremunits are supported. Support foremunits has been removed.
- The transformers
-
#1302
d5a7908Thanks @lukasoppermann! - Improve context for agents
v11.4.0
Minor Changes
-
#1298
3cec8c2Thanks @lukasoppermann! - Adding text size scale -
#1295
b9e6685Thanks @lukasoppermann! - Add LLM context metadata and a new build process to build a markdown file with all token context. -
#1297
bfe0d46Thanks @lukasoppermann! - Added lineHeight tokens
Patch Changes
-
#1289
4c0bf67Thanks @tfeijo! - fix: correct @Custom-Media syntax for narrowLandscape viewport range -
#1294
6e285f2Thanks @jonrohan! - Remove the ::backdrop css selectors from the color themes queries -
#1300
dcde6afThanks @lukasoppermann! - Adding metadata to borders and more colors -
#1299
e4333eaThanks @lukasoppermann! - Add metadata for some more size and color tokens
v11.3.2
v11.3.1
v11.3.0
Minor Changes
- #1269
0dd1e26Thanks @langermank! - Add new color tokens for buttons with keybinding hint
Patch Changes
- #1265
394d649Thanks @langermank! - Fix overlay bg color for dark dimmed high contrast
v11.2.1
v11.2.0
Minor Changes
-
#1255
092dea7Thanks @lukasoppermann! - Adding new draft role token -
#1247
d1deb93Thanks @lukasoppermann! - Change primer.css to using imports