Skip to content

Commit eaf5468

Browse files
committed
remove custom css
1 parent 8974ded commit eaf5468

File tree

5 files changed

+65
-162
lines changed

5 files changed

+65
-162
lines changed

app/App.css

Lines changed: 0 additions & 32 deletions
This file was deleted.

app/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
onMount,
99
} from "solid-js";
1010
import "maplibre-gl/dist/maplibre-gl.css";
11-
import "./App.css";
1211
import { type Flavor, layers } from "@protomaps/basemaps";
1312
import maplibregl from "maplibre-gl";
1413
import type { StyleSpecification } from "maplibre-gl";
@@ -77,13 +76,14 @@ function App() {
7776
};
7877

7978
return (
80-
<div id="container">
81-
<div class="sidebar">
79+
<div class="w-full h-dvh flex">
80+
<div class="w-1/4 p-4" class="space-y-2">
8281
<Show when={flavorList()}>
8382
<For each={flavorList()}>
8483
{(flavorName) => (
8584
<button
8685
type="button"
86+
class="w-full cursor-pointer border-1"
8787
onClick={() => setSelectedFlavorName(flavorName)}
8888
>
8989
<FlavorRow name={flavorName} />
@@ -99,7 +99,7 @@ function App() {
9999
/>
100100
<label for="showLabels">Show labels</label>
101101
</div>
102-
<div id="map" />
102+
<div id="map" class="h-dvh w-3/4" />
103103
</div>
104104
);
105105
}

app/index.css

Lines changed: 1 addition & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1 @@
1-
:root {
2-
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3-
line-height: 1.5;
4-
font-weight: 400;
5-
6-
color-scheme: light dark;
7-
color: rgba(255, 255, 255, 0.87);
8-
background-color: #242424;
9-
10-
font-synthesis: none;
11-
text-rendering: optimizeLegibility;
12-
-webkit-font-smoothing: antialiased;
13-
-moz-osx-font-smoothing: grayscale;
14-
}
15-
16-
a {
17-
font-weight: 500;
18-
color: #646cff;
19-
text-decoration: inherit;
20-
}
21-
a:hover {
22-
color: #535bf2;
23-
}
24-
25-
body {
26-
margin: 0;
27-
display: flex;
28-
place-items: center;
29-
min-width: 320px;
30-
min-height: 100vh;
31-
}
32-
33-
h1 {
34-
font-size: 3.2em;
35-
line-height: 1.1;
36-
}
37-
38-
button {
39-
border-radius: 8px;
40-
border: 1px solid transparent;
41-
padding: 0.6em 1.2em;
42-
font-size: 1em;
43-
font-weight: 500;
44-
font-family: inherit;
45-
background-color: #1a1a1a;
46-
cursor: pointer;
47-
transition: border-color 0.25s;
48-
}
49-
button:hover {
50-
border-color: #646cff;
51-
}
52-
button:focus,
53-
button:focus-visible {
54-
outline: 4px auto -webkit-focus-ring-color;
55-
}
56-
57-
@media (prefers-color-scheme: light) {
58-
:root {
59-
color: #213547;
60-
background-color: #ffffff;
61-
}
62-
a:hover {
63-
color: #747bff;
64-
}
65-
button {
66-
background-color: #f9f9f9;
67-
}
68-
}
1+
@import "tailwindcss";

flavors/sol.ts

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -10,79 +10,79 @@ export default (<Flavor>{
1010
school: "rgba(250, 220, 166, 1)",
1111
wood_a: "#94ccc3",
1212
wood_b: "#94ccc3",
13-
pedestrian: "",
13+
pedestrian: "black",
1414
scrub_a: "#a4c6a2",
1515
scrub_b: "#a4c6a2",
1616
glacier: "rgba(239, 240, 231, 1)",
1717
sand: "rgba(222, 218, 189, 1)",
1818
beach: "rgba(236, 251, 218, 1)",
1919
aerodrome: "rgba(218, 211, 208, 1)",
20-
runway: "",
21-
water: "",
20+
runway: "black",
21+
water: "black",
2222
zoo: "rgba(143, 211, 167, 1)",
2323
military: "rgba(173, 188, 195, 1)",
2424

25-
tunnel_other_casing: "",
26-
tunnel_minor_casing: "",
27-
tunnel_link_casing: "",
28-
tunnel_major_casing: "",
29-
tunnel_highway_casing: "",
30-
tunnel_other: "",
31-
tunnel_minor: "",
32-
tunnel_link: "",
33-
tunnel_major: "",
34-
tunnel_highway: "",
25+
tunnel_other_casing: "black",
26+
tunnel_minor_casing: "black",
27+
tunnel_link_casing: "black",
28+
tunnel_major_casing: "black",
29+
tunnel_highway_casing: "black",
30+
tunnel_other: "black",
31+
tunnel_minor: "black",
32+
tunnel_link: "black",
33+
tunnel_major: "black",
34+
tunnel_highway: "black",
3535

36-
pier: "",
37-
buildings: "",
36+
pier: "black",
37+
buildings: "black",
3838

39-
minor_service_casing: "",
40-
minor_casing: "",
41-
link_casing: "",
42-
major_casing_late: "",
43-
highway_casing_late: "",
44-
other: "",
45-
minor_service: "",
46-
minor_a: "",
47-
minor_b: "",
48-
link: "",
49-
major_casing_early: "",
50-
major: "",
51-
highway_casing_early: "",
52-
highway: "",
39+
minor_service_casing: "black",
40+
minor_casing: "black",
41+
link_casing: "black",
42+
major_casing_late: "black",
43+
highway_casing_late: "black",
44+
other: "black",
45+
minor_service: "black",
46+
minor_a: "black",
47+
minor_b: "black",
48+
link: "black",
49+
major_casing_early: "black",
50+
major: "black",
51+
highway_casing_early: "black",
52+
highway: "black",
5353

54-
railway: "",
55-
boundaries: "",
56-
waterway_label: "",
54+
railway: "black",
55+
boundaries: "black",
56+
waterway_label: "black",
5757

58-
bridges_other_casing: "",
59-
bridges_minor_casing: "",
60-
bridges_link_casing: "",
61-
bridges_major_casing: "",
62-
bridges_highway_casing: "",
63-
bridges_other: "",
64-
bridges_minor: "",
65-
bridges_link: "",
66-
bridges_major: "",
67-
bridges_highway: "",
58+
bridges_other_casing: "black",
59+
bridges_minor_casing: "black",
60+
bridges_link_casing: "black",
61+
bridges_major_casing: "black",
62+
bridges_highway_casing: "black",
63+
bridges_other: "black",
64+
bridges_minor: "black",
65+
bridges_link: "black",
66+
bridges_major: "black",
67+
bridges_highway: "black",
6868

69-
roads_label_minor: "",
70-
roads_label_minor_halo: "",
71-
roads_label_major: "",
72-
roads_label_major_halo: "",
73-
ocean_label: "",
74-
peak_label: "",
75-
subplace_label: "",
76-
subplace_label_halo: ")",
77-
city_label: "",
78-
city_label_halo: "",
79-
state_label: "",
80-
state_label_halo: "",
81-
country_label: "",
69+
roads_label_minor: "black",
70+
roads_label_minor_halo: "black",
71+
roads_label_major: "black",
72+
roads_label_major_halo: "black",
73+
ocean_label: "black",
74+
peak_label: "black",
75+
subplace_label: "black",
76+
subplace_label_halo: "black",
77+
city_label: "black",
78+
city_label_halo: "black",
79+
state_label: "black",
80+
state_label_halo: "black",
81+
country_label: "black",
8282

83-
regular: "",
84-
bold: "",
85-
italic: "",
83+
regular: "black",
84+
bold: "black",
85+
italic: "black",
8686

8787
landcover: {
8888
grassland: "rgba(143, 201, 173, 1)",

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import fs from "node:fs";
22
import path from "node:path";
33
import { defineConfig } from "vite";
44
import solid from "vite-plugin-solid";
5+
import tailwindcss from '@tailwindcss/vite'
56

67
const flavorList = () => {
78
const contentDir = path.resolve(__dirname, "flavors");
@@ -49,5 +50,6 @@ export default defineConfig({
4950
},
5051
},
5152
solid(),
53+
tailwindcss()
5254
],
5355
});

0 commit comments

Comments
 (0)