💎 Monorepository for Stylify packages. Stylify uses CSS-like selectors to generate Extremely optimized utility-first CSS dynamically based on what you write 💎.
MIT License
Bot releases are visible (Hide)
Published by Machy8 over 1 year ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.16...v0.5.17
Published by Machy8 almost 2 years ago
Bugfixes + Typehint fixes
Full Changelog: https://github.com/stylify/packages/compare/v0.5.15...v0.5.16
Published by Machy8 almost 2 years ago
When some external variables are defined (for example CSS variables) it makes no sense to define or import them into Stylify. Instead you can use mark them as external. More info in docs.
const stylifyConfig = {
compiler: {
externalVariables: [
// Simple string check
'test',
// Flexible function check. Return true if matched. Otherwise return undefined or nothing.
(variable) => {
if (variable.startsWith('md-') return true;
}
]
}
}
Full Changelog: https://github.com/stylify/packages/compare/v0.5.14...v0.5.15
Published by Machy8 almost 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.13...v0.5.14
Published by Machy8 almost 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.12...v0.5.13
Published by Machy8 almost 2 years ago
Now you can define Dynamic Components.
With this feature, you can create components, that changes style based on matches from regular expression
For example:
title--large title--$red
const compilerConfig = {
components: {
// title--$red
// title--#06f
'title(?:--(\\S+))?': ({ matches, variables, helpers, dev }) => {
const color = matches[1] ?? '#000';
return `font-size:24px${color ? ` color:${color}` : ''}`;
},
}
};
Full Changelog: https://github.com/stylify/packages/compare/v0.5.11...v0.5.12
Published by Machy8 almost 2 years ago
md:{font-size:24px;margin-bottom:8px} lg:hover:{color:purple;scale:1.4}
-
and _
in generated CSS_
can be now escaped \_
, so the _
is preserved: [.some\_\_selector]{color:blue}
=> this will not replace underscoresFull Changelog: https://github.com/stylify/packages/compare/v0.5.10...v0.5.11
Published by Machy8 almost 2 years ago
Published by Machy8 almost 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.8...v0.5.9
Published by Machy8 almost 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.7...v0.5.8
Published by Machy8 almost 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.6...v0.5.7
Published by Machy8 almost 2 years ago
stylifyVite({})
=> stylifyVite()
Full Changelog: https://github.com/stylify/packages/compare/v0.5.5...v0.5.6
Published by Machy8 almost 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.4...v0.5.5
Published by Machy8 almost 2 years ago
default
id
. This will create it's own bundler and compiler for rewritting selectors.Published by Machy8 almost 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.2...v0.5.3
Published by Machy8 almost 2 years ago
Bug fixes
Full Changelog: https://github.com/stylify/packages/compare/v0.5.1...v0.5.2
Published by Machy8 about 2 years ago
Full Changelog: https://github.com/stylify/packages/compare/v0.5.0...v0.5.1
Published by Machy8 about 2 years ago
Plain Selectors
renamed to Custom selectors
const components = {
'button': `
cursor:pointer
.icon { color:yellow }
> {
.icon, span { vertical-align:middle }
}
`
}
this
object:'macro': ({ macroMatch, selectorProperties, helpers, variables, dev }) => {
// ...
}
.rewriteSelectors({ content, rewriteOnlyInSelectorsAreas, matchSelectorsWithPrefix })
matchSelectorsWithPrefix
that causes to match element according to the given prefix during compilation => If matched selector had to be class, the prefix is .
and is rewritten as .selector
instead of selector
.await bundler.waitOnBundlesProcessed()
can be called on its own. It now internally waits on the bundle() method to finish. The await bundler.bundle()
. Can be removed if is used to wait on the Bundler before another step in the build.getBundler()
method now waits on the previous bundler to finish and then creates a new bundler during developmentFull Changelog: https://github.com/stylify/packages/compare/v0.4.0...v0.5.0
Published by Machy8 about 2 years ago
stylifyIntegration
export renamed to stylify
.class:list
._
=> border:2px_solid_red
.replaceVariablesByCssVariables
is enabled.Full Changelog: https://github.com/stylify/packages/compare/v0.3.0...v0.4.0
Published by Machy8 about 2 years ago
const compilerConfig = {
variables: {
'.dark': {
bg: '#000'
}
}
}
lighten(#000,10)
can now be used by default in selectors properties border:2px__solid__lighten(#000,10)
, color:lighten(#000, 10)
.Stylify.configure()
without runtime
key.$
in ignored area@stylify/astro
integration for AstroJS@stylify/autoprefixer
discontinuedFull Changelog: https://github.com/stylify/packages/compare/v0.2.1...v0.3.0