Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GDSS (Godot-CSS)

An asset by Cruglet
The page banner background of a mountain and forest
GDSS (Godot-CSS) image holder but it is empty

Quick Information

0 ratings
GDSS (Godot-CSS) icon image
Cruglet
GDSS (Godot-CSS)

A new, flexible approach to theming in Godot! Write styles once and apply them everywhere. GDSS brings a CSS-inspired stylesheet language to Godot, with support for variables, states, transitions, classes, gradients, and per-node instance overrides, all driven by a live editor with syntax highlighting, autocompletion, and hot-reload!

Supported Engine Version
4.6
Version String
1.0.0-alpha.1
License Version
MIT
Support Level
community
Modified Date
10 hours ago
Git URL
Issue URL

GDSS: Godot stylesheets

An experimental CSS-like styling system for Godot 4. This was originally not intended for public use. However, upon further developing it into something more stable and sophisticated I've decided to open source it in case anyone would like to use it or help support the development of it.

Do not expect this plugin to be 100% stable- it is a work in progress.

Some showcase videos

[dev#1] [dev#2] [dev#3] [dev#4] [dev#5]

Example Syntax

Button {
    bg_color: BLACK
    border_color: RED
    border: 5 5 5 5
    corner_radius: 20 0 20 0
    transition_time: 0.4
    transition_func: QUINT
    transition_type: EASE_OUT

    :hover {
        border_color: YELLOW
    }
    :pressed {
        expand: 20 20 20 20
    }
    :normal, :focus {
        skew_y: 0
    }
}

Panel, PanelContainer {
    bg_color: BLACK
}

Features

  • Selectors, state blocks, composite shorthand, comma groups
  • State transitions
  • Easing config (transition_func, transition_type)
  • Skew (skew_x, skew_y), corner detail, shadow
  • Per-node opt-in
  • Classes
  • Runtime support + hot-reload
  • Hex color parsing
  • Variable support
  • Some way to preview the node as you're writing in gdss.
  • Export variable support (in order to access from GDScript)
  • Method support
  • Syntax error highlighting

TODO

(not necessarily in order)

  • UI polish

A new, flexible approach to theming in Godot! Write styles once and apply them everywhere. GDSS brings a CSS-inspired stylesheet language to Godot, with support for variables, states, transitions, classes, gradients, and per-node instance overrides, all driven by a live editor with syntax highlighting, autocompletion, and hot-reload!

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GDSS (Godot-CSS) icon image
Cruglet
GDSS (Godot-CSS)

A new, flexible approach to theming in Godot! Write styles once and apply them everywhere. GDSS brings a CSS-inspired stylesheet language to Godot, with support for variables, states, transitions, classes, gradients, and per-node instance overrides, all driven by a live editor with syntax highlighting, autocompletion, and hot-reload!

Supported Engine Version
4.6
Version String
1.0.0-alpha.1
License Version
MIT
Support Level
community
Modified Date
10 hours ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers