Giter VIP home page Giter VIP logo

customizable-cinnamon-theme's Introduction

Customizable Cinnamon Theme

theme

This theme for the Cinnamon Desktop Environment can be customized via SASS variables. It is based on the default theme with a few modifications:

  • Flat colors instead of gradients
  • Higher panel
  • No shadows

Getting Started

  1. Clone this repository

  2. Install dependencies

npm install
  1. Create a symlink to this theme in ~/.themes (the .themes folder has to exist in the home directory of the current user!)
npm run link
  1. Compile the SASS to CSS
npm run build

5: (Re)load the theme in Cinnamon

npm run reload

Customizing

Changing colors, borders and fonts

The default values for colors, borders and fonts are configured in sass/base/variables.scss.

You can override these values with your own in sass/custom-variables.scss.

Main variables

Basics

  • $base-color: Used for backgrounds
  • $base-accent-color: Used for borders and hover overlays
  • $base-accent-strength: Opacity for accents (0-1)

Fonts

  • $font-family
  • $font-size
  • $font-size-large
  • $font-size-small

Colors (default values depend on $base... variables)

  • $color-text
  • $color-background
  • $color-border
  • $color-hover
  • $color-active
  • $color-separator
  • $color-disabled
  • $color-highlight

Borders

  • $border-radius
  • $border-width
  • $border: Complete border definition

Other

  • $transition-duration

The variables for different applets and components usually inherit the values from the base variables. Only override them if you want them to be different from the base value.

Changing the base theme

This theme is based on the default Cinnamon theme, but you can use a different base theme instead.

Replace the contents of sass/base/original-theme.scss with those of cinnamon.css from the base theme you want to use.

Note: Paths to assets have to be relative to the cinnamon directory!

If you want to switch to the base theme completely for certain components or applets, just remove the relevant @import statement from the main cinnamon.scss file.

Adding custom rules

Custom rules can be added in the file sass/custom-rules.scss.

Tips & Tricks

For continuous development, the following command automatically builds and reloads the theme when files have been changed:

npm run watch

Examples

Ubuntu

$base-color: #5E2750;
$base-accent-color: #E95420;
$base-accent-strength: 0.4;
$font-family: Ubuntu;
$border-width: 0px;

Example Ubuntu

Windows 10

$base-color: #000;
$base-accent-strength: 0.4;
$border-radius: 0px;
$border-width: 0px;

Example Windows 10

Credits

customizable-cinnamon-theme's People

Contributors

kryops avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

customizable-cinnamon-theme's Issues

CSS Doesn't look like screenshots.

Love the theme, but it doesn't work on my machine. The scrollbars seem very off. The only customization I did was the suggested Windows 10 styles in the README.

I am using Cinnamon 3.2 on Arch Linux.

screenshot

Also small nit, any way to scale the systray icons to be a bit smaller?

                   -`                   quest@omega 
                  .o+`                  ----------- 
                 `ooo/                  Model: N24_25BU lemu7 
                `+oooo:                 OS: Arch Linux x86_64 
               `+oooooo:                Kernel: 4.8.10-1-ARCH 
               -+oooooo+:               Uptime: 4 days, 2 hours, 47 minutes 
             `/:-:++oooo+:              Packages: 1506 
            `/++++/+++++++:             Shell: zsh 5.2 
           `/++++++++++++++:            Resolution: 1920x1080, 2560x1600_48 
          `/+++ooooooooooooo/`          DE: Cinnamon 
         ./ooosssso++osssssso+`         WM: Mutter (Muffin) 
        .oossssso-````/ossssss+`        WM Theme: Customizable-Cinnamon (Adwaita) 
       -osssssso.      :ssssssso.       Theme: Adwaita [GTK2/3] 
      :osssssss/        osssso+++.      Icons: Mint-X-Dark [GTK2/3] 
     /ossssssss/        +ssssooo/-      Terminal: gnome-terminal 
   `/ossssso+/:-        -:/+osssso+-    CPU: Intel Core i7-7500U (4) @ 3.5GHz 
  `+sso+:-`                 `.-/+oso:   GPU: Intel Integrated Graphics 
 `++:.                           `-/+/  Memory: 8803MB / 31945MB 
 .`                                 `/   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.