Git Product home page Git Product logo

Up until lately, whenever we’d think of changing themes in run-time, we’d immediately go for some sort of a JS/JSX solution. That could be either theming through higher-order components, passing themes as props (usually with the help of React.Context) or using popular libraries like styled-components.

Today, thanks to ‘CSS custom properties’, a.k.a ‘CSS variables’, we shift the weight towards plain CSS. That is to say, there’s still a need for some JavaScript but as you’ll see, it plays a much minor role (as a side note — that should immediately tell you there’s a good chance of performance optimization).

Eden's Projects

awesome-new icon awesome-new

A list of `.new` domains to perform online actions in one quick action.

badjokes-blog icon badjokes-blog

A blog site built with Gatsby and reusable components from Bit.dev

basic-todo-app icon basic-todo-app

A React TODO app with some UI components -> Shared as a reusable collection:

theme-react icon theme-react

Example: Theming React components with CSS variables

todo-react-ts icon todo-react-ts

All component of this to-do app have been published to Bit (https://bit.dev/eden/todo-react). See the app here:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.