Skip to content

A minimal website project built using Kobweb and JetBrains Compose for Web, created to explore Kobweb’s component model, theming, and layout system — including light/dark mode switching and CSS utilities.

Notifications You must be signed in to change notification settings

vivekbargude/SimpleWebsiteUsingKobWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Simple Website with Kobweb

A minimal website project built using Kobweb and JetBrains Compose for Web, created to explore Kobweb’s component model, theming, and layout system — including light/dark mode switching and CSS utilities.


📋 Table of Contents

  1. Demo Preview
  2. Features
  3. Tech Stack
  4. Project Structure
  5. Getting Started
  6. Screenshots
  7. Learn More
  8. Author

Demo Preview

🔆 Light Mode

Light Mode Screenshot

🌙 Dark Mode

Dark Mode Screenshot


Features

  • 🌓 Dark / Light Theme Toggle with persistent storage
  • 🎨 Dynamic Gradient Backgrounds driven by theme
  • Smooth CSS Transitions via Modifier.transition { … }
  • 🧩 Composable UI using @Composable, Box, and Surface
  • Silk Theming overrides via @InitSilk
  • 💾 localStorage integration for theme persistence

Tech Stack

  • Kobweb – Kotlin-first web framework
  • JetBrains Compose for Web – Declarative UI
  • Silk UI – Theming & layout components
  • Compose Web CSS DSL – Type‑safe styling
  • Browser APIslocalStorage

Project Structure


simple\_website/
├── components/          # Reusable UI pieces (ProfileCard, ThemeSwitchButton)
├── pages/               # @Page-annotated screens (HomePage, etc.)
├── utils/               # Resources & constants (Res, colors, strings)
├── AppEntry.kt          # @App entrypoint & Silk theme overrides
└── index.html           # Static host HTML (generated)


Getting Started

  1. Install Kobweb CLI

    npm install -g @varabyte/kobweb
    # or via Yarn / pnpm
    
  2. Create & Run Project

    kobweb create simple_website
    cd simple_website
    kobweb run
  3. Open http://localhost:8080 in your browser.


Screenshots

Place your screenshots in a screenshots/ folder:

  • screenshots/light_mode.png
  • screenshots/dark_mode.png

Learn More


Author

Vivek Bargude – Exploring modern Kotlin web development with Kobweb 🎉

About

A minimal website project built using Kobweb and JetBrains Compose for Web, created to explore Kobweb’s component model, theming, and layout system — including light/dark mode switching and CSS utilities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages