Skip to content

Commit

Permalink
fix dark styles
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Oct 28, 2024
1 parent 3fcdd91 commit d716517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/design-tokens/scripts/build-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ const darkJson = require('../src/tokens/base/colors/dark')
`tokens/functional/components/tooltip/colors.json`,
`tokens/functional/components/river-story-scroll/colors.js`,
`tokens/functional/components/pricing-options/colors.json`,
`tokens/functional/components/icon/colors.json`,
]

for (const path of filesForColorModes) {
Expand Down
2 changes: 2 additions & 0 deletions packages/react/src/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {type Icon as OcticonProps} from '@primer/octicons-react'
import {Colors} from '../constants'

import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors.css'
import '@primer/brand-primitives/lib/design-tokens/css/tokens/functional/components/icon/colors-with-modes.css'


Check failure on line 10 in packages/react/src/Icon/Icon.tsx

View workflow job for this annotation

GitHub Actions / Install and run tests

Delete `⏎`
export const namedIconSizes = ['small', 'medium', 'large'] as const
export type NamedIconSize = (typeof namedIconSizes)[number]
Expand Down

0 comments on commit d716517

Please sign in to comment.