Provide SCSS file

Created on 29 September 2021, about 3 years ago
Updated 3 July 2024, 6 months ago

Problem/Motivation

There is many nuance of color in the theme ans it's Hard to customize them.

Steps to reproduce

none

Proposed resolution

Provide SCSS file to be able to use lighten/darken function

Remaining tasks

provide SCSS file

User interface changes

none

API changes

none

Data model changes

none

💬 Support request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium OCTOGONE.dev Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India Sachin.addweb

    Hello,

    This is some SCSS code for light and dark function, please try and check it.

    // Define base colors
    $primary-color: #3498db; // A shade of blue
    $secondary-color: #e74c3c; // A shade of red
    
    // Lighten and darken functions
    $primary-light: lighten($primary-color, 20%);
    $primary-dark: darken($primary-color, 20%);
    
    $secondary-light: lighten($secondary-color, 20%);
    $secondary-dark: darken($secondary-color, 20%);
    
    // Apply colors to elements
    body {
      font-family: Arial, sans-serif;
    }
    
    .container {
      margin: 0 auto;
      padding: 20px;
      text-align: center;
    
      .primary {
        background-color: $primary-color;
        color: #fff;
        padding: 10px;
        border-radius: 5px;
        margin: 10px 0;
    
        &.light {
          background-color: $primary-light;
        }
    
        &.dark {
          background-color: $primary-dark;
        }
      }
    
      .secondary {
        background-color: $secondary-color;
        color: #fff;
        padding: 10px;
        border-radius: 5px;
        margin: 10px 0;
    
        &.light {
          background-color: $secondary-light;
        }
    
        &.dark {
          background-color: $secondary-dark;
        }
      }
    }
    

    Thanks

Production build 0.71.5 2024