chore(deps): update dependency styled-components to v6.3.0 #649

Merged
renovate merged 1 commit from renovate/styled-components-6.x-lockfile into master 2026-01-10 10:04:34 +01:00
Collaborator

This PR contains the following updates:

Package Type Update Change
styled-components (source) dependencies minor 6.2.06.3.0

Release Notes

styled-components/styled-components (styled-components)

v6.3.0

Compare Source

Minor Changes
  • 28fd502: Add React Server Components (RSC) support

    styled-components now automatically detects RSC environments and handles CSS delivery appropriately:

    • No 'use client' directive required: Components work in RSC without any wrapper or directive
    • Automatic CSS injection: In RSC mode, styled components emit inline <style> tags that React 19 automatically hoists and deduplicates
    • Zero configuration: Works out of the box with Next.js App Router and other RSC-enabled frameworks
    • Backward compatible: Existing SSR patterns with ServerStyleSheet continue to work unchanged

    RSC best practices:

    • Prefer static styles over dynamic interpolations to avoid serialization overhead
    • Use data attributes for discrete variants (e.g., &[data-size='lg'])
    • CSS custom properties work perfectly in styled-components, can be set via inline style, and cascade to children:
    const Container = styled.div``;
    const Button = styled.button`
      background: var(--color-primary, blue);
    `;
    
    // Variables set on parent cascade to all DOM children
    <Container style={{ '--color-primary': 'orchid' }}>
      <Button>Inherits orchid background</Button>
    </Container>;
    
    • Use build-time CSS variable generation for theming since ThemeProvider is a no-op in RSC

    Technical details:

    • RSC detection via typeof React.createContext === 'undefined'
    • ThemeProvider and StyleSheetManager become no-ops in RSC (children pass-through)
    • React hooks are conditionally accessed via runtime guards
    • CSS is retrieved from the StyleSheet Tag for inline delivery in RSC mode
  • 856cf06: feat: update built-in element aliases to include modern HTML and SVG elements

    Added support for modern HTML and SVG elements that were previously missing:

    HTML elements:

    • search - HTML5 search element
    • slot - Web Components slot element
    • template - HTML template element

    SVG filter elements:

    • All fe* filter primitive elements (feBlend, feColorMatrix, feComponentTransfer, etc.)
    • clipPath, linearGradient, radialGradient - gradient and clipping elements
    • textPath - SVG text path element
    • switch, symbol, use - SVG structural elements

    This ensures styled-components has comprehensive coverage of all styleable HTML and SVG elements supported by modern browsers and React.

Patch Changes
  • 418adbe: fix(types): add CSS custom properties (variables) support to style prop

    CSS custom properties (CSS variables like --primary-color) are now fully supported in TypeScript without errors:

    • .attrs({ style: { '--var': 'value' } }) - CSS variables in attrs
    • <Component style={{ '--var': 'value' }} /> - CSS variables in component props
    • Mixed usage with regular CSS properties works seamlessly
  • aef2ad6: Update shared css property handling tools to latest versions.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [styled-components](https://styled-components.com) ([source](https://github.com/styled-components/styled-components)) | dependencies | minor | [`6.2.0` → `6.3.0`](https://renovatebot.com/diffs/npm/styled-components/6.2.0/6.3.0) | --- ### Release Notes <details> <summary>styled-components/styled-components (styled-components)</summary> ### [`v6.3.0`](https://github.com/styled-components/styled-components/releases/tag/styled-components%406.3.0) [Compare Source](https://github.com/styled-components/styled-components/compare/styled-components@6.2.0...styled-components@6.3.0) ##### Minor Changes - [`28fd502`](https://github.com/styled-components/styled-components/commit/28fd502): Add React Server Components (RSC) support styled-components now automatically detects RSC environments and handles CSS delivery appropriately: - **No `'use client'` directive required**: Components work in RSC without any wrapper or directive - **Automatic CSS injection**: In RSC mode, styled components emit inline `<style>` tags that React 19 automatically hoists and deduplicates - **Zero configuration**: Works out of the box with Next.js App Router and other RSC-enabled frameworks - **Backward compatible**: Existing SSR patterns with `ServerStyleSheet` continue to work unchanged RSC best practices: - Prefer static styles over dynamic interpolations to avoid serialization overhead - Use data attributes for discrete variants (e.g., `&[data-size='lg']`) - CSS custom properties work perfectly in styled-components, can be set via inline `style`, and cascade to children: ```tsx const Container = styled.div``; const Button = styled.button` background: var(--color-primary, blue); `; // Variables set on parent cascade to all DOM children <Container style={{ '--color-primary': 'orchid' }}> <Button>Inherits orchid background</Button> </Container>; ``` - Use build-time CSS variable generation for theming since `ThemeProvider` is a no-op in RSC Technical details: - RSC detection via `typeof React.createContext === 'undefined'` - `ThemeProvider` and `StyleSheetManager` become no-ops in RSC (children pass-through) - React hooks are conditionally accessed via runtime guards - CSS is retrieved from the StyleSheet Tag for inline delivery in RSC mode - [`856cf06`](https://github.com/styled-components/styled-components/commit/856cf06): feat: update built-in element aliases to include modern HTML and SVG elements Added support for modern HTML and SVG elements that were previously missing: HTML elements: - `search` - HTML5 search element - `slot` - Web Components slot element - `template` - HTML template element SVG filter elements: - All `fe*` filter primitive elements (feBlend, feColorMatrix, feComponentTransfer, etc.) - `clipPath`, `linearGradient`, `radialGradient` - gradient and clipping elements - `textPath` - SVG text path element - `switch`, `symbol`, `use` - SVG structural elements This ensures styled-components has comprehensive coverage of all styleable HTML and SVG elements supported by modern browsers and React. ##### Patch Changes - [`418adbe`](https://github.com/styled-components/styled-components/commit/418adbe): fix(types): add CSS custom properties (variables) support to style prop CSS custom properties (CSS variables like `--primary-color`) are now fully supported in TypeScript without errors: - `.attrs({ style: { '--var': 'value' } })` - CSS variables in attrs - `<Component style={{ '--var': 'value' }} />` - CSS variables in component props - Mixed usage with regular CSS properties works seamlessly - [`aef2ad6`](https://github.com/styled-components/styled-components/commit/aef2ad6): Update shared css property handling tools to latest versions. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43Ni40IiwidXBkYXRlZEluVmVyIjoiNDIuNzYuNCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
chore(deps): update dependency styled-components to v6.3.0
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
6c37d2fca9
renovate scheduled this pull request to auto merge when all checks succeed 2026-01-10 10:02:32 +01:00
renovate merged commit 904fe4ce41 into master 2026-01-10 10:04:34 +01:00
renovate deleted branch renovate/styled-components-6.x-lockfile 2026-01-10 10:04:34 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
yolokube/dashboard!649
No description provided.