Skip to content

VienDinhCom/emotion-css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overriding CSS styles with Emotion

You can use emotion to override Bootstrap, Foundation, Semantic UI, ... CSS styles without !important.

Install

npm install --save emotion
npm install --save emotion-css

Usage

import css from 'emotion-css';

const app = document.getElementById('root');

// String Style
const stringStyle = css`
  font-size: 14px;
  border: none;
`;

// Object Style
const objectStyle = css({
  color: 'red',
  background: 'yellow'
});


app.classList.add(stringStyle);
app.classList.add(objectStyle);

About

Overriding Bootstrap, Foundation, Semantic UI, ... and other CSS styles with Emotion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published