Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit 886d709

Browse files
authored
chore(contented-preview): simplify style and fix favicon (#633)
#### What this PR does / why we need it: As per title.
1 parent f77d327 commit 886d709

File tree

9 files changed

+13
-40
lines changed

9 files changed

+13
-40
lines changed

packages/contented-example/docs/04-markdown.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,14 @@ They can be declared via long-form `:::div{class="table-fixed"}` or short-form `
182182

183183
### Table Directive
184184

185-
| Header 1 | Header 2 | Header 3 |
186-
| -------- | -------- | -------- |
187-
| Cell 1 | Cell 2 | Cell 3 |
185+
| Header 1 | Header 2 | Header 3 |
186+
| -------- | -------- | ----------------------------------- |
187+
| Cell 1 | Cell 2 | Cell 3 `LongTextThatCannotTruncate` |
188188

189189
```markdown
190-
| Header 1 | Header 2 | Header 3 |
191-
| -------- | -------- | -------- |
192-
| Cell 1 | Cell 2 | Cell 3 |
190+
| Header 1 | Header 2 | Header 3 |
191+
| -------- | -------- | ----------------------------------- |
192+
| Cell 1 | Cell 2 | Cell 3 `LongTextThatCannotTruncate` |
193193
```
194194

195195
:::div{class="table-fixed"}

packages/contented-example/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
],
1313
"scripts": {
1414
"build": "contented build",
15+
"clean": "rm -rf .contented dist",
1516
"generate": "contented generate",
1617
"watch": "contented build --watch",
1718
"write": "contented generate --watch"
14.7 KB
Binary file not shown.

packages/contented-preview/src/components/ContentNavigation.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function ContentNavigation({ sections, className }) {
5151
className={clsx('truncate', {
5252
'block w-full cursor-pointer truncate pl-3.5 before:pointer-events-none before:absolute before:inset-y-0 before:-left-1 before:w-1':
5353
folderName,
54-
'text-primary-500 before:bg-primary-500 font-semibold': isCurrentPath,
54+
'font-semibold text-rose-500 before:bg-rose-500': isCurrentPath,
5555
'text-slate-500 before:hidden before:bg-slate-300 hover:text-slate-600 hover:before:block dark:text-slate-400 dark:before:bg-slate-700 dark:hover:text-slate-300':
5656
!isCurrentPath,
5757
})}

packages/contented-preview/src/components/ContentProse.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function ContentProse({ as: Component = 'div', className, ...prop
1111
// lead
1212
'prose-lead:text-slate-500 dark:prose-lead:text-slate-400',
1313
// links
14-
'prose-a:font-semibold prose-a:text-primary-500 dark:prose-a:text-primary-400',
14+
'prose-a:font-semibold prose-a:text-rose-500 dark:prose-a:text-rose-400',
1515
// link underline
1616
'prose-a:no-underline hover:prose-a:underline ',
1717
// code

packages/contented-preview/src/components/Header.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Header() {
2929
</div>
3030

3131
<a href="/" className="flex items-center">
32-
<Square3Stack3DIcon className="text-primary-500 h-6 w-6" />
32+
<Square3Stack3DIcon className="h-6 w-6 text-rose-500" />
3333
<h1 className="ml-2 font-semibold">{process.env.CONTENTED_PREVIEW_SITE_NAME}</h1>
3434
</a>
3535

packages/contented-preview/src/pages/404.jsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@ export default function NotFound() {
22
return (
33
<main className="max-w-8xl mx-auto flex w-full flex-grow flex-col px-4 sm:px-6 lg:px-8">
44
<div className="my-auto flex-shrink-0 py-16 sm:py-32">
5-
<p className="text-primary-600 dark:text-primary-500 text-sm font-semibold uppercase tracking-wide">
6-
404 error
7-
</p>
5+
<p className="text-sm font-semibold uppercase tracking-wide text-rose-600 dark:text-rose-500">404 error</p>
86
<h1 className="mt-2 text-4xl font-extrabold tracking-tight sm:text-5xl">Page not found</h1>
97
<p className="mt-2 text-base text-gray-500">Sorry, we couldn’t find the page you’re looking for.</p>
108
<div className="mt-6">
11-
<a href="/" className="text-primary-600 dark:text-primary-500 text-base font-medium">
9+
<a href="/" className="text-base font-medium text-rose-600 dark:text-rose-500">
1210
Go back home<span aria-hidden="true"> &rarr;</span>
1311
</a>
1412
</div>

packages/contented-preview/src/styles/prose.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
.prose :is(h1, h2, h3, h4, h5, h6) a:first-child:before {
4343
content: '#';
44-
@apply text-primary-500 absolute -ml-6;
44+
@apply absolute -ml-6 text-rose-500;
4545
}
4646

4747
.prose code:not(pre code):not(:where([class~='not-prose'] *)) {

packages/contented-preview/tailwind.config.js

-26
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,6 @@ module.exports = {
77
maxWidth: {
88
'8xl': '100rem',
99
},
10-
colors: {
11-
primary: {
12-
50: '#FFE5F7',
13-
100: '#FFCCEF',
14-
200: '#FF99DF',
15-
300: '#FF66CF',
16-
400: '#FF33BF',
17-
500: '#FF00AF',
18-
600: '#D60093',
19-
700: '#AD0077',
20-
800: '#85005B',
21-
900: '#5C003F',
22-
},
23-
'dark-primary': {
24-
25: '#2F0421',
25-
50: '#460632',
26-
100: '#751657',
27-
200: '#8F1A6A',
28-
300: '#CD1F96',
29-
400: '#D6249E',
30-
500: '#EE2CB1',
31-
600: '#F268C7',
32-
700: '#F8ABE0',
33-
900: '#FFDFF5',
34-
},
35-
},
3610
typography: ({ theme }) => ({
3711
DEFAULT: {
3812
css: {

0 commit comments

Comments
 (0)