From b1c3ddffe052cedb4bbfd3269c59163d978d9a14 Mon Sep 17 00:00:00 2001 From: Kevin Satria D <130447401+kevinnsd1@users.noreply.github.com> Date: Wed, 20 May 2026 10:31:54 +0700 Subject: [PATCH] first commit --- README.md | 66 +++++++++++++++++++++++++++++++++++++ index.html | 19 +++++++++++ package.json | 24 ++++++++++++++ src/App.jsx | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++ src/index.css | 18 ++++++++++ src/main.jsx | 10 ++++++ vite.config.js | 11 +++++++ 7 files changed, 237 insertions(+) create mode 100644 README.md create mode 100644 index.html create mode 100644 package.json create mode 100644 src/App.jsx create mode 100644 src/index.css create mode 100644 src/main.jsx create mode 100644 vite.config.js diff --git a/README.md b/README.md new file mode 100644 index 0000000..d1d5bb8 --- /dev/null +++ b/README.md @@ -0,0 +1,66 @@ +# SmartTiket - React + Tailwind CSS v4 + Google Fonts + +This is a clean, modern, and highly-optimized setup for **SmartTiket** using React 19, Vite 6, Tailwind CSS v4, and Google Fonts. + +--- + +## 🛠️ Tech Stack & Configuration + +* **React 19 & Vite 6**: Fast hot module replacement (HMR) and ultra-fast builds. +* **Tailwind CSS v4**: Built using the new `@tailwindcss/vite` plugin. Configuration is handled entirely inside the CSS file utilizing the `@theme` directive. +* **Google Fonts**: + * **Outfit** (Headers & Display) + * **Plus Jakarta Sans** (Body text) +* **Lucide React**: Lightweight, beautiful icon set pre-installed. + +--- + +## 🚀 How to Run + +Follow these simple steps in your terminal to start the development server: + +### 1. Install Dependencies +```bash +npm install +``` + +### 2. Run the Development Server +```bash +npm run dev +``` + +### 3. Open in Browser +Visit the local URL shown in your terminal (usually `http://localhost:5173`) to view the successful setup screen. + +--- + +## 📂 Project Structure + +```text +smart_tiket/ +├── src/ +│ ├── App.jsx # Main React Component & Welcome Screen +│ ├── index.css # Tailwind CSS v4 imports + custom @theme configuration +│ └── main.jsx # React 19 mounting entry point +├── index.html # HTML Shell importing custom Google Fonts +├── package.json # Dependencies (React, Vite, Tailwind v4, Lucide) +├── vite.config.js # Vite 6 config with official React & Tailwind plugins +└── README.md # Documentation +``` + +--- + +## 🎨 Customizing the Design System + +To add more custom fonts, colors, or transitions, open **`src/index.css`** and declare them inside the `@theme` block: + +```css +@theme { + /* Extending font family */ + --font-custom: 'My Font', sans-serif; + + /* Custom Tailwind v4 colors */ + --color-gold: #fbbf24; +} +``` +You can now immediately use `font-custom` and `bg-gold` / `text-gold` inside any React component! diff --git a/index.html b/index.html new file mode 100644 index 0000000..96bcdf2 --- /dev/null +++ b/index.html @@ -0,0 +1,19 @@ + + +
+ + ++ Welcome to your new development environment. React 19, Tailwind CSS v4, and Google Fonts are successfully configured and ready. +
+ + {/* Feature Checkmarks */} +Test React State
+Clicked {count} times
+# Next steps to start coding:
+1. Open workspace directory
+2. Run npm install
+3. Run npm run dev
+