Get Started

Get Started

Include global styling

app.css
@import "@arkitektbedriftene/fe-lib/ui/ui.css"

Style a <div> using styled

Component.tsx
import { styled } from "@arkitektbedriftene/fe-lib/ui"
 
const Wrapper = styled('div', {
  display: 'flex',
  background: '$blue200'
})
 
export const Component = () => {
  return (
    <Wrapper>
      my wrapper
    </Wrapper>
  )
}

Style a <p> using Box

Component.tsx
import { Box } from "@arkitektbedriftene/fe-lib/ui"
 
export const Component = () => {
  return (
    <Box as="p" css={{
      fontSize: '$sm',
      color: '$blue200'
    }}>
      my paragraph
    </Box>
  )
}

Use a component

Component.tsx
import { Button } from "@arkitektbedriftene/fe-lib/ui"
 
export const Component = () => {
  return (
    <Button>
      button
    </Button>
  )
}