Gamma 6 #97
Spiderpig86
started this conversation in
General
Gamma 6
#97
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Like Cirrus 0.6.0, 0.7.0 was another large undertaking that brought a large refactor of the entire codebase to prioritize configurability and enhance overall developer experience. This rewrite represents the first step in how Cirrus is repositioning as a component-and-utility-centric SCSS framework.
With this, there will be some breaking changes when upgrading to 0.7.0, but this release note entry should make the changes painless to do.
There are a ton of things that were added in this new update, but below are a few big ones I want to highlight.
A new way to use Cirrus
With previous versions, the only ways to use Cirrus was to either linking the CDN link at the top of your page or importing
cirrus-ui
into your Node project.This is fine, but it lacked any sort of customization. The only way to change Cirrus was to clone the project and build your own version locally. Dart Sass has given me immense opportunity to improve Cirrus's usability and fix technical debt and hacks. One of the things it also enabled was directly importing Cirrus into your Sass/Scss project directly.
Not only can you import different pre-configured versions of Cirrus, but also take advantage of all the functions, mixins, constants, etc. that Cirrus comes built with.
No more having to build Cirrus separately and then copying and pasting the generated styles to your project. Read more on this here.
Focus on configurability
One of the things this rewrite aimed to accomplish was configurability. In the past, CSS frameworks were just things we plop into our project and we either accepted styles it gave us or we spent countless hours overriding them to fit our needs. Why should we continue to subject ourselves to that amount of torture?
0.7.0 marks a big step in dynamic class generation. Whether you are building Cirrus locally or you're importing Cirrus directly into your Sass files, you can take advantage of defining a configuration object in both scenarios when you import the framework. Use the configuration object to specify viewports for classes, extend existing component and utility styles, toggle features, and more.
Currently most utility classes and components can be customized through here in this release, but I hope to extend this capability a lot more in future updates. Read more on this here.
Revamped colors
Default colors have been tuned a bit for increased vibrancy and range. Of course, these colors can be customized via the configuration object as well.
Utils, utils, and more utils
Utility classes within Cirrus have grown to be quite popular. This update adds utility classes for:
A lot of classes have also seen the introduction of viewport variants. Those can be found in the class specific documentation in the docs page.
Components
This update wasn't as focused on introducing new components, but it was not forgotten. Some of the new components styles are:
Check out the new docs to see all the new features in 0.7.0!
🎉 Features
currentColor
for text. 5ff9035font-size-s
. 57a2c89xl
viewport added to Cirrus. 61e3f03pulse
andping
animations. 5f13215table-container
class to handle overflowing tables with many columns. f0249edbg-transparent
andtext-transparent
classes. c0fcb18font-primary
andfont-secondary
(akafont-alt
) classes. 5e67315🐛 Fixes
u
andutb
rendered with inconsistent heights. 9a60273fullscreen
tomin-height: 100vh
. 4b6c075💥 Breaking Changes
content
class will now default to100%
width and adjusts according toxs
,sm
,md
,lg
, andxl
breakpoints. To get the previous behavior, just includew-80
. 61e3f03faded
class is now deprecated. Use opacity utilities instead. 1e9205d--xs
,--sm
,--md
,--lg
, and--xl
instead of-xsmall
,-small
,-large
,-xlarge
.white
. Usetext-white
instead. 2334c1au-round
=>u-round-xs
u-circle
=>u-round-full
pulse
animation topound
. 72839d2tabs-center
=>tabs--center
tabs-right
=>tabs--right
tabs--left
class.grid-gap-*
classes in favor ofu-gap-*
. 1aaee51w-50
=>w-50p
h-50
=>h-50p
min-h-50
=>min-h-50p
min-w-50
=>min-w-50p
max-h-50
=>max-h-50p
max-w-50
=>max-w-50p
This discussion was created from the release Gamma 6.
Beta Was this translation helpful? Give feedback.
All reactions