© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Nirmalya Ghosh
Developer
Max Stoiber
CEO & co-founder of Stellate, the GraphQL CDN ⚡
It's Just JavaScript™️ ! (I should really make this our official tagline…)
Define your variables like any other module
// constant.js const constants = { primary: '#000', lang: 'en' } export default constants
and then in your components just use that module
// Button.js import constants from '../constants' import styled from 'styled-components' export default styled.button` color: ${constants.primary}; `
No magic to be seen here!
Awesome!
Max Stoiber
CEO & co-founder of Stellate, the GraphQL CDN ⚡
It's Just JavaScript™️ ! (I should really make this our official tagline…)
Define your variables like any other module
// constant.js const constants = { primary: '#000', lang: 'en' } export default constantsand then in your components just use that module
// Button.js import constants from '../constants' import styled from 'styled-components' export default styled.button` color: ${constants.primary}; `No magic to be seen here!