Brand Components

Brand Components

Brand Components

As a theme made for brand guidelines, we've put together some custom components that you will most likely need to to build up brand guidelines< Colours, Fonts and other essentiels! Like everything else in the theme, you can shadow the component files to customise them, but we've integrated a lot of styling props into the components themselves, so you have plenty to work with.

Box

A very basic component, the box allows lots of customisation. It takes MDX and component content within it. You can add background colours, your own text styles and colours -- to display your brand content. Not that text styling will only apply to direct children - not components or html within the box.

<BrandBox> This is a box </BrandBox>
This is a box
PropControl
colorContent/type color
fontFont of the content
fontSizeContent font-size
fontWeightContent font-weight
caseContent text-transform
BackgroundAdds a background to the box and padding within it
extraSpaceSet this to true to add larger padding
<BrandBox
color= '#2222ff'
font= 'Playfair Display'
fontSize= '32px'
fontWeight= '400'
case= 'lowercase'
Background= '#f3f3f3'
extraSpace= {true}
> This is a box </BrandBox>
This is a box

Rule

As with all guidelines, you will have to mark things as do and don't do. So we have a specific rule component.

<BrandRule> This is a rule </BrandRule>
This is a rule
PropControl
doDefaults to true - a 'do' rule. Set to false to get a cross.
BackgroundDefault false, you can switch this to true to highlight your rule
fontFont of the content
fontSizeContent font-size
fontWeightContent font-weight
<BrandRule
Background= {true}
do= {true}
> This is a rule </BrandRule>
<BrandRule
Background= {true}
do= {false}
> This is a rule </BrandRule>
This is a rule This is a rule

Font

Display your brand fonts with the font component.

<BrandFont
font="Montserrat"
fontName="Name of font" />

Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz 1 2 3 4 5 6 7 8 9 0 ? ! @ # $ % &

Name of font
PropControl
fontFont of the content
fontNameOptional font label below
lightSet this to true to display the font in grey

Color

Display color snippets with colour data using this component. It requires that you have HEEX values for your colours. If you need to add a custome row, such as Pantone or other colour codes, you can shodow and edit the component.

<BrandColor
colorName = "Revoratio"
colorHex = "#0064FF"
colorRGB = "0, 100, 255"
colorCMYK = "77, 48, 0, 0"
/>
RevoratioRGB 0, 100, 255CMYK 77, 48, 0, 0HEX #0064FF
PropControl
colorNameThe Name you want displayed for your color
colorHexThis HEX value is both displayed and affects the background colour of the card
colorRGBA string of RGB values
colorCMYKA string of CMYK values
flexSet this to 'row' to display colour values on the right of the card

Caption

All guidelines need annotations and captions. This component offers a faded, smaller font sized caption with a limited width, to add explanatory notes to you examples.

<BrandCaption> This is caption text </BrandCaption>
This is caption text

Theme-ui

We've also called in the essentials : Grid from theme-ui. You can also use their Badge and Embed to give you some extra options.

Read more about this components on Theme UI Components