Skip to content

Commit ff68806

Browse files
axue3AndrewKushnir
authored andcommitted
docs(docs-infra): add primary color vars for tutorial button
1 parent f0ad30c commit ff68806

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

  • adev
    • shared-docs/pipeline/tutorials/common/src
    • src/content/tutorials/first-app/steps/02-Home
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
/* You can add global styles to this file, and also import other style files */
2+
:root {
3+
--primary-color: #605dc8;
4+
--secondary-color: #8b89e6;
5+
--accent-color: #e8e7fa;
6+
--shadow-color: #e8e8e8;
7+
}
8+
9+
button.primary {
10+
padding: 10px;
11+
border: solid 1px var(--primary-color);
12+
background: var(--primary-color);
13+
color: white;
14+
border-radius: 8px;
15+
}
216
body {
317
font-family: 'Be Vietnam Pro', sans-serif;
4-
}
18+
}

adev/src/content/tutorials/first-app/steps/02-Home/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,26 @@ In this step, you add a search filter and button that is used in a later lesson.
9595
For now, that's all that `Home` has.
9696
Note that, this step just adds the search elements to the layout without any functionality, yet.
9797

98+
If you started from a fresh Angular project instead of downloading the starter
99+
(ng new): add these globals to `src/styles.css` so the search button and input border are visible:
100+
101+
```
102+
:root {
103+
--primary-color: #605DC8;
104+
--secondary-color: #8B89E6;
105+
--accent-color: #e8e7fa;
106+
--shadow-color: #E8E8E8;
107+
}
108+
109+
button.primary {
110+
padding: 10px;
111+
border: solid 1px var(--primary-color);
112+
background: var(--primary-color);
113+
color: white;
114+
border-radius: 8px;
115+
}
116+
```
117+
98118
In the **Edit** pane of your IDE:
99119

100120
1. In the `first-app` directory, open `home.ts` in the editor.

0 commit comments

Comments
 (0)