nav-hoykontrast
TypeScript icon, indicating that this package has built-in type declarations

2.1.2 • Public • Published

NAV styled components theme

This package:

. overrides --navds values for high contrast mode . toggles dynamically between high contrast / normal mode

How to use it

import NavHighContrast from 'nav-hoykontrast'
import styled from 'styled-components'

const highContrast : boolean = true

<NavHighContrast highContrast={highContrast}>
    {your components go here}
</NavHighContrast>

Demo

https://navikt.github.io/nav-hoykontrast/build/

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.2
    2
    • latest

Version History

Package Sidebar

Install

npm i nav-hoykontrast

Homepage

.

Weekly Downloads

2

Version

2.1.2

License

MIT

Unpacked Size

9.57 MB

Total Files

56

Last publish

Collaborators

  • kenajoh
  • nunocardoso