Skip to content

feat(docs): Add CSS Variables page#3301

Merged
vprothais merged 7 commits intoouds/mainfrom
ouds/main-lmp-2589-css-var
Feb 16, 2026
Merged

feat(docs): Add CSS Variables page#3301
vprothais merged 7 commits intoouds/mainfrom
ouds/main-lmp-2589-css-var

Conversation

@louismaximepiton
Copy link
Copy Markdown
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
Copy Markdown

netlify bot commented Dec 24, 2025

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 332dc6e
🔍 Latest deploy log https://app.netlify.com/projects/boosted/deploys/6992f80ac2dbcc000890adbd
😎 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
Copy Markdown
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
Copy Markdown

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.

@boosted-bot boosted-bot moved this from Need Dev Review to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 16, 2026
@vprothais vprothais merged commit 510ba9f into ouds/main Feb 16, 2026
13 of 14 checks passed
@vprothais vprothais deleted the ouds/main-lmp-2589-css-var branch February 16, 2026 14:08
@github-project-automation github-project-automation bot moved this from Need Lead Dev Review to Done in 🟣 [Orange-Boosted-Bootstrap] PRs Board Feb 16, 2026
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

Development

Successfully merging this pull request may close these issues.

4 participants