Salta al contenuto
0
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
  • Home
  • Piero Bosio
  • Blog
  • Mondo
  • Fediverso
  • News
  • Categorie
  • Old Web Site
  • Recenti
  • Popolare
  • Tag
  • Utenti
Skin
  • Chiaro
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Scuro
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Predefinito (Cerulean)
  • Nessuna skin
Collassa

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  1. Home
  2. Categorie
  3. Technical Discussion
  4. I've streamlined theme development in Ktistec.

I've streamlined theme development in Ktistec.

Pianificato Fissato Bloccato Spostato Technical Discussion
ktisteccrystallangactivitypubfediverse
4 Post 2 Autori 28 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • toddsundsted@epiktistes.comundefined Questo utente è esterno a questo forum
    toddsundsted@epiktistes.comundefined Questo utente è esterno a questo forum
    toddsundsted@epiktistes.com
    scritto su ultima modifica di
    #1

    I've streamlined theme development in Ktistec. The theming system uses a hierarchy of CSS custom properties and fallbacks. Theme authors can customize a theme at multiple levels:

    Base Colors Only

    Define only base colors like --text-primary, --bg-primary, --bg-input, --semantic-primary, etc. Derived colors will auto-generate using color-mix formulas. For example:

    :root { --semantic-primary: #ffa500; }

    From this one line, theme-appropriate colors like --bg-accent-code, --anchor-color, etc. auto-generate.

    Base Colors Plus Derived Colors

    Define base colors and derived colors. Derived colors use custom values when defined. Undefined derived colors auto-generate. For example:

    :root {
        --text-primary: #333;
        --text-primary-2: #ff0000;  /* red for this specific shade */
    }

    Given this theme, derived shades like --text-primary-1, --text-primary-3, and --text-primary-4 auto-generate. --text-primary-2 is red.

    The simplest possible interesting theme redefines the primary semantic color. The single line above (in Base Colors Only) would result in the following, with button color, link color, disabled, selected, and hover states all derived automatically:

    screenshot of the setting page with the primary semantic color defined

    These changes will be in the upcoming release. Existing themes will continue to work, as is.

    #ktistec #crystallang #activitypub #fediverse

    mariusor@metalhead.clubundefined 1 Risposta Ultima Risposta
    0
    • toddsundsted@epiktistes.comundefined toddsundsted@epiktistes.com

      I've streamlined theme development in Ktistec. The theming system uses a hierarchy of CSS custom properties and fallbacks. Theme authors can customize a theme at multiple levels:

      Base Colors Only

      Define only base colors like --text-primary, --bg-primary, --bg-input, --semantic-primary, etc. Derived colors will auto-generate using color-mix formulas. For example:

      :root { --semantic-primary: #ffa500; }

      From this one line, theme-appropriate colors like --bg-accent-code, --anchor-color, etc. auto-generate.

      Base Colors Plus Derived Colors

      Define base colors and derived colors. Derived colors use custom values when defined. Undefined derived colors auto-generate. For example:

      :root {
          --text-primary: #333;
          --text-primary-2: #ff0000;  /* red for this specific shade */
      }

      Given this theme, derived shades like --text-primary-1, --text-primary-3, and --text-primary-4 auto-generate. --text-primary-2 is red.

      The simplest possible interesting theme redefines the primary semantic color. The single line above (in Base Colors Only) would result in the following, with button color, link color, disabled, selected, and hover states all derived automatically:

      screenshot of the setting page with the primary semantic color defined

      These changes will be in the upcoming release. Existing themes will continue to work, as is.

      #ktistec #crystallang #activitypub #fediverse

      mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
      mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
      mariusor@metalhead.club
      scritto su ultima modifica di
      #2

      @toddsundsted did you use any literature for deciding on the theme basic colors and how to combine them?

      I've been struggling with something very similar a while back and the material design specs seemed too complex for what I wanted, but nothing else popped up on search.

      toddsundsted@epiktistes.comundefined 1 Risposta Ultima Risposta
      0
      • Sistema ha spostato questa discussione da General Discussion su
      • mariusor@metalhead.clubundefined mariusor@metalhead.club

        @toddsundsted did you use any literature for deciding on the theme basic colors and how to combine them?

        I've been struggling with something very similar a while back and the material design specs seemed too complex for what I wanted, but nothing else popped up on search.

        toddsundsted@epiktistes.comundefined Questo utente è esterno a questo forum
        toddsundsted@epiktistes.comundefined Questo utente è esterno a questo forum
        toddsundsted@epiktistes.com
        scritto su ultima modifica di
        #3

        @mariusor no, i'm still trying to figure that out myself. what i have done is build something that seems capable of handling themes that i find that i like. but even there i guess i have ~2-3 more revisions before it is fully capable.

        i did pick semantic ui as my base framework. it has worked well, but it is abandoned. there is a fork called fomantic ui that is supported, but it is also much larger. other frameworks also seemed too large for my tastes, but i will admit to not doing a ton of research.

        mariusor@metalhead.clubundefined 1 Risposta Ultima Risposta
        0
        • toddsundsted@epiktistes.comundefined toddsundsted@epiktistes.com

          @mariusor no, i'm still trying to figure that out myself. what i have done is build something that seems capable of handling themes that i find that i like. but even there i guess i have ~2-3 more revisions before it is fully capable.

          i did pick semantic ui as my base framework. it has worked well, but it is abandoned. there is a fork called fomantic ui that is supported, but it is also much larger. other frameworks also seemed too large for my tastes, but i will admit to not doing a ton of research.

          mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
          mariusor@metalhead.clubundefined Questo utente è esterno a questo forum
          mariusor@metalhead.club
          scritto su ultima modifica di
          #4

          @toddsundsted ok, bookmarked. When I'll circle back to ONI themeing I'll send some feedback your way to compare notes. :D

          With ONI I tried to be "fun" and I generate a basic palette from the images actors upload as their Icon and Image properties (ie, profile and header picture in mastodon terms :D) As you can imagine that can lead to very dubious results.

          1 Risposta Ultima Risposta
          0

          Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

          Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

          Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

          Registrati Accedi
          Rispondi
          • Risposta alla discussione
          Effettua l'accesso per rispondere
          • Da Vecchi a Nuovi
          • Da Nuovi a Vecchi
          • Più Voti


          Feed RSS
          I've streamlined theme development in Ktistec.
          @pierobosio@soc.bosio.info
          V4.10.1 Contributors
          • Accedi

          • Accedi o registrati per effettuare la ricerca.
          • Primo post
            Ultimo post