DEV Community

neoan
neoan

Posted on

2 1

Gaudiamus CSS got smarter

The idea of a framework builder might be exotic in the CSS world: usually we don't share SCSS functions & mixing like we do with code.

However, having a solid starting point to develop your custom CSS with seems logical. Frameworks like ornate make use of Gaudiamus' builder.

Utility class generator

Next to SCSS functions and mixing, almost all variables are exposed to the user to be changed & customized. This creates a setup that does not require anything else but a SASS compiler itself. This is an argument especially for those who suffered under the configuration of solutions like tailwind.

What's the learning curve?

Gaudiamus will give you a decent experience out-of-the-box. Starting with manipulating the variables will make every start easy:

npm i gaudiamus-css

// In your index.scss

// Start by changing variables
$primaryColor: #16ca24;

@import "../node_modules/gaudiamus-css/scss

// Now all default utilities using the primary color are updated.

p{
   @extend .text-primary
}
Enter fullscreen mode Exit fullscreen mode
<p>hi</p>
Enter fullscreen mode Exit fullscreen mode

Of course this is a rather primitive example, but changing the maps will soon reveal the customization power of the approach.

Standard utilities and grid

Even if you don't have the need to roll your own framework, you will likely find the Grid-System and included utilities a useful start to your design. I especially cherish that the responsive grid is true CSS-grid, not flexbox based. This cleans up my HTML and generates better overview.

Beyond

As of now, documentation centers around customization and composition. But dare to have a look at the mixins & functions within the package should you encounter you are comfortable with the system.

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more