Skip to content

Commit 40240a7

Browse files
authored
Merge pull request #252 from oasisprotocol/csillag/add-ui-library
Introduce Oasis UI Library
2 parents f236bcf + c29a37a commit 40240a7

16 files changed

Lines changed: 3309 additions & 170 deletions

.changelog/252.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Introduce Oasis UI Library

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ pnpm-lock.yaml
3333

3434
# markdownlint formatted files
3535
*.md
36+
37+
ui-library

.github/workflows/ci-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22+
with:
23+
submodules: 'recursive'
2224
- name: Set up Node.js 20
2325
uses: actions/setup-node@v4
2426
with:

.github/workflows/ci-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v4
22+
with:
23+
submodules: 'recursive'
2224
- name: Set up Node.js 20
2325
uses: actions/setup-node@v4
2426
with:

.github/workflows/cloudflare-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
# Checkout pull request HEAD commit instead of merge commit.
4545
with:
4646
ref: ${{ github.event.pull_request.head.sha }}
47+
submodules: 'recursive'
4748
- name: Set up Node.js 20
4849
uses: actions/setup-node@v4
4950
with:

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
contents: write
2121
steps:
2222
- uses: actions/checkout@v4
23+
with:
24+
submodules: 'recursive'
2325
- name: Set up Node.js 20
2426
uses: actions/setup-node@v4
2527
with:

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ui-library"]
2+
path = ui-library
3+
url = https://github.com/oasisprotocol/ui-library.git

home/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>ROSE App</title>
88
</head>
99
<body>
10-
<div id="root"></div>
10+
<div id="root" class="dark"></div>
1111
<script type="module" src="/src/main.tsx"></script>
1212
</body>
1313
</html>

home/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,16 @@
2323
"@oasisprotocol/rose-app-stake": "workspace:*",
2424
"@oasisprotocol/rose-app-ui": "workspace:*",
2525
"@oasisprotocol/rose-app-wrap": "workspace:*",
26+
"@oasisprotocol/ui-library": "file:../ui-library",
2627
"@rainbow-me/rainbowkit": "^2.1.2",
28+
"@tailwindcss/vite": "^4.1.7",
2729
"@tanstack/react-query": "5.45.1",
2830
"fathom-client": "^3.7.2",
2931
"react": "^18.2.0",
3032
"react-dom": "^18.2.0",
3133
"react-responsive": "^9.0.2",
3234
"react-router-dom": "^6.22.2",
35+
"tailwindcss": "^4.1.7",
3336
"viem": "^2.23.1",
3437
"wagmi": "^2.14.11"
3538
},

home/src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { createBrowserRouter, RouterProvider } from 'react-router-dom'
88
import { App } from './App.tsx'
99
import { ProvidersWithSidebar } from './ProvidersWithSidebar.tsx'
1010

11+
import './styles/global.css'
1112
import '@oasisprotocol/rose-app-ui/core/index.css'
1213

1314
const router = createBrowserRouter([

0 commit comments

Comments
 (0)