Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@looker/design-tokens
Advanced tools
This package contains our default looker theme values, including font families, font sizes, and colors.
This package contains our default looker theme values, including font families, font sizes, and colors.
If you choose to import values directly from this package, you will most likely break the theme integration used in Styled Components.
It can still be helpful to reference this package for the named values which can be accessed in our styled components, or to build your own theme objects.
Example of use with our themed components:
import { Heading, HeadingProps } from '@looker/components'
// 'medium', 'xlarge', and 'normal' represent named values within the theme object:
const StyledHeading = styled(Heading).attrs((props: HeadingProps) => {
return {
mb: 'medium',
lineHeight: 'xlarge',
fontWeight: 'normal',
}
})``
Once you've created your own theme object modeled after the values in this repo, you can override in production by wrapping components in a ThemeProvider.
import { ThemeProvider } from 'styled-components'
const myTheme = {
///... theme values here
}
const MyApp = () => {
return (
<ThemeProvider theme={myTheme}>
{/*... Looker UI Components here */}
</ThemeProvider>
)
}
FAQs
This package contains our default looker theme values, including font families, font sizes, and colors.
The npm package @looker/design-tokens receives a total of 1,599 weekly downloads. As such, @looker/design-tokens popularity was classified as popular.
We found that @looker/design-tokens demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.