Configuration
This guide walks through how to configure the Arc Design System to work in your project.
Fonts
component seen below.
#Fonts and global styles
global
function. This function respects all design tokens.
import React from 'react'
import Head from 'next/head'
import { Fonts, global } from '@wpmedia/ads-system'
const globalStyles = global({
'a[type="button"]': {
textDecoration: 'none',
justifyContent: 'center',
display: 'flex',
flexDirection: 'column',
margin: '$2'
},
})
export default function App() {
globalStyles()
return (
<Fonts />
<Head>
<title>Arc UI</title>
</Head>
)
}
#SCSS variables
arc-fonts.scss
contains@font-face
declarations for the Arc font, Output Sans.arc-variables.scss
contains all design tokens for the design system, including colors, spacing and fonts.arc-bootstrap.scss
maps variables to specific Bootstrap override values.
#Bootstrap theme
arc-bootstrap
file provided by the design system.