Skip to content

Conversation

@louismaximepiton
Copy link
Member

@louismaximepiton louismaximepiton commented Dec 24, 2025

Related issues

Closes #2589

Description

Add the CSS variables page to the doc

Checklists

Progression (for Core Team only)

Live previews

@netlify
Copy link

netlify bot commented Dec 24, 2025

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit e49608a
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/698c8b23c44a260008b6c934
😎 Deploy Preview https://deploy-preview-3301--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.


## Grid breakpoints

While we include our grid breakpoints as CSS variables (except for `xs`), be aware that **CSS variables do not work in media queries**. This is by design in the CSS spec for variables, but may change in coming years with support for `env()` variables. Check out [this Stack Overflow answer](https://stackoverflow.com/a/47212942) for some helpful links. In the meantime, you can use these variables in other CSS situations, as well as in your JavaScript.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
While we include our grid breakpoints as CSS variables (except for `xs`), be aware that **CSS variables do not work in media queries**. This is by design in the CSS spec for variables, but may change in coming years with support for `env()` variables. Check out [this Stack Overflow answer](https://stackoverflow.com/a/47212942) for some helpful links. In the meantime, you can use these variables in other CSS situations, as well as in your JavaScript.
While we include our grid breakpoints as CSS variables (except for `2xs`), be aware that **CSS variables do not work in media queries**. This is by design in the CSS spec for variables, but may change in coming years with support for `env()` variables. Check out [this Stack Overflow answer](https://stackoverflow.com/a/47212942) for some helpful links. In the meantime, you can use these variables in other CSS situations, as well as in your JavaScript.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a comprehensive CSS Variables documentation page to the OUDS Web documentation, closing issue #2589 which tracks functional equivalence to Boosted. The page documents CSS custom properties, their usage, and patterns for customization.

Changes:

  • Added complete CSS Variables documentation page with sections on root variables, component variables, prefix customization, SVG deduping, examples, focus-visible variables, and grid breakpoints
  • Enhanced the Code component to support multiple regex matches using the global flag and joining results
  • Removed draft status from CSS Variables page in the sidebar navigation

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
site/src/content/docs/foundation/css-variables.mdx New documentation page covering CSS custom properties including root variables for light/dark modes, component variables, prefix configuration, and usage examples
site/src/components/shortcodes/Code.astro Modified regex matching to support global flag and join multiple matches, enabling display of multiple CSS blocks from the same file
site/data/sidebar-getting-started.yml Removed draft flag from CSS variables page to make it visible in navigation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

louismaximepiton and others added 2 commits February 11, 2026 14:24
Co-authored-by: Vincent Prothais <vincent.prothais@orange.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 documentation Improvements or additions to documentation

Projects

Status: Need Dev Review

Development

Successfully merging this pull request may close these issues.

2 participants