10
10
11
11
@font-face {
12
12
font-display : swap;
13
- font-family : Signifier ;
13
+ font-family : Inter ;
14
14
font-style : normal;
15
15
font-weight : 400 ;
16
- src : url ("$fonts/signifier-light.woff2" ) format ("woff2" )
16
+ src : url ("$fonts/Inter-Regular.woff2" ) format ("woff2" );
17
+ size-adjust : 94% ;
17
18
}
18
19
19
20
@font-face {
20
21
font-display : swap;
21
- font-family : Signifier ;
22
+ font-family : Inter ;
22
23
font-style : italic;
23
24
font-weight : 400 ;
24
- src : url ("$fonts/signifier-light-italic.woff2" ) format ("woff2" )
25
+ src : url ("$fonts/Inter-Italic.woff2" ) format ("woff2" );
26
+ size-adjust : 94% ;
25
27
}
26
28
27
29
@font-face {
28
30
font-display : swap;
29
- font-family : Signifier ;
31
+ font-family : Inter ;
30
32
font-style : normal;
31
- font-weight : 700 ;
32
- src : url ("$fonts/signifier-bold.woff2" ) format ("woff2" )
33
+ font-weight : 500 ;
34
+ src : url ("$fonts/Inter-SemiBold.woff2" ) format ("woff2" );
35
+ size-adjust : 94% ;
36
+ }
37
+
38
+ @font-face {
39
+ font-display : swap;
40
+ font-family : Inter;
41
+ font-style : italic;
42
+ font-weight : 500 ;
43
+ src : url ("$fonts/Inter-SemiBoldItalic.woff2" ) format ("woff2" );
44
+ size-adjust : 94% ;
45
+ }
46
+
47
+ @font-face {
48
+ font-display : swap;
49
+ font-family : Inter;
50
+ font-style : normal;
51
+ font-weight : 600 ;
52
+ src : url ("$fonts/Inter-Bold.woff2" ) format ("woff2" );
53
+ size-adjust : 94% ;
33
54
}
34
55
35
56
@font-face {
36
57
font-display : swap;
37
- font-family : Signifier ;
58
+ font-family : Inter ;
38
59
font-style : italic;
60
+ font-weight : 600 ;
61
+ src : url ("$fonts/Inter-BoldItalic.woff2" ) format ("woff2" );
62
+ size-adjust : 94% ;
63
+ }
64
+
65
+ @font-face {
66
+ font-display : swap;
67
+ font-family : Roboto Mono;
68
+ font-style : normal;
69
+ font-weight : 400 ;
70
+ src : url ("$fonts/roboto-mono-latin-400-normal.woff2" ) format ("woff2" )
71
+ }
72
+
73
+ @font-face {
74
+ font-display : swap;
75
+ font-family : Roboto Mono;
76
+ font-style : normal;
39
77
font-weight : 700 ;
40
- src : url ("$fonts/signifier-bold-italic .woff2" ) format ("woff2" )
78
+ src : url ("$fonts/roboto-mono-latin-700-normal .woff2" ) format ("woff2" )
41
79
}
42
80
43
81
@font-face {
82
+ font-display : swap;
83
+ font-family : Roboto Mono;
84
+ font-style : italic;
85
+ font-weight : 400 ;
86
+ src : url ("$fonts/roboto-mono-latin-400-italic.woff2" ) format ("woff2" )
87
+ }
88
+
89
+ /*
90
+
91
+ The default ChatGPT fonts, according to OpenAI's brand guidelines, are proprietary and require appropriate font license according to your use case.
92
+
93
+ They can be purchased here: https://klim.co.nz/buy/soehne/
94
+
95
+ The fonts in question are (9 total):
96
+
97
+ > - Söhne (Buch Kursiv, Buch, Halbfett Kursiv, Halbfett, Kraftig Kursiv, Kraftig, Mono Buch Kursiv, Mono Buch, Mono Halbfett)
98
+
99
+ If you have purchased a license, you can use the commented-out `@font-face` declarations below to include them in your project.
100
+
101
+ Step 1: Buy whatever license applies to you and allows use of `.woff2` font files (likely web font license).
102
+ Step 2: Place them in ./client/public/fonts/ directory.
103
+ Step 3: Replace the current `fontFamily` config in ./client/tailwind.config.cjs with the following:
104
+
105
+ ```
106
+ fontFamily: {
107
+ sans: ['Söhne', 'sans-serif'],
108
+ mono: ['Söhne Mono', 'monospace'],
109
+ },
110
+ ```
111
+
112
+ Step 4: Uncomment all Söhne font-face declarations below.
113
+ Step 5: rebuild frontend code: `npm run frontend` (or rebuild docker).
114
+
115
+ */
116
+
117
+ /* @font-face {
44
118
font-display: swap;
45
119
font-family: Söhne;
46
120
font-style: normal;
110
184
font-style: italic;
111
185
font-weight: 400;
112
186
src: url("$fonts/soehne-mono-buch-kursiv.woff2") format("woff2")
113
- }
187
+ } */
114
188
115
189
/* * {
116
190
box-sizing: border-box;
@@ -1311,25 +1385,6 @@ html {
1311
1385
animation : spin 1s linear infinite;
1312
1386
}
1313
1387
1314
- .result-streaming {
1315
- -webkit-animation : blink 1s steps (5 , start) infinite;
1316
- animation : blink 1s steps (5 , start) infinite;
1317
- content : "⬤ " ;
1318
- margin-left : 0.25rem ;
1319
- vertical-align : baseline;
1320
- }
1321
-
1322
- /* .result-streaming>:not(ol):not(ul):not(pre):last-child:after,
1323
- .result-streaming>ol:last-child li:last-child:after,
1324
- .result-streaming>pre:last-child code:after,
1325
- .result-streaming>ul:last-child li:last-child:after {
1326
- -webkit-animation:blink 1s steps(5,start) infinite;
1327
- animation:blink 1s steps(5,start) infinite;
1328
- content:"▋";
1329
- margin-left:.25rem;
1330
- vertical-align:baseline
1331
- } */
1332
-
1333
1388
.form-input ,
1334
1389
.form-multiselect ,
1335
1390
.form-select ,
@@ -1870,3 +1925,74 @@ html {
1870
1925
--tw-shadow : inset 0 0 0 1px rgba (0 , 0 , 0 , .25 );
1871
1926
--tw-shadow-colored : inset 0 0 0 1px var (--tw-shadow-color );
1872
1927
}
1928
+
1929
+ .result-streaming > : not (ol ): not (ul ): not (pre ): last-child : after ,
1930
+ .result-streaming > pre : last-child code : after {
1931
+ display : inline-block; /* Add this line */
1932
+ content : "⬤" ;
1933
+ width : 12px ;
1934
+ height : 12px ;
1935
+ font-family : system-ui, Inter, Söhne Circle, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
1936
+ line-height : normal;
1937
+ margin-left : .25rem ;
1938
+ vertical-align : middle;
1939
+ font-size : 0.5rem ;
1940
+ }
1941
+
1942
+ .result-streaming > pre : last-child code {
1943
+ background : url ('path-to-circle-image' ) no-repeat right center;
1944
+ padding-right : 1em ; /* Adjust as necessary */
1945
+ }
1946
+
1947
+ @supports (selector(: has (* ))) {
1948
+ .result-streaming > ol : last-child > li : last-child > ol : last-child > li : last-child : after ,
1949
+ .result-streaming > ol : last-child > li : last-child > ol : last-child > li : last-child > ol : last-child > li : last-child : after ,
1950
+ .result-streaming > ol : last-child > li : last-child > ol : last-child > li : last-child > ul : last-child > li : last-child : after ,
1951
+ .result-streaming > ol : last-child > li : last-child > ul : last-child > li : last-child : after ,
1952
+ .result-streaming > ol : last-child > li : last-child > ul : last-child > li : last-child > ol : last-child > li : last-child : after ,
1953
+ .result-streaming > ol : last-child > li : last-child > ul : last-child > li : last-child > ul : last-child > li : last-child : after ,
1954
+ .result-streaming > ul : last-child > li : last-child > ol : last-child > li : last-child : after ,
1955
+ .result-streaming > ul : last-child > li : last-child > ol : last-child > li : last-child > ol : last-child > li : last-child : after ,
1956
+ .result-streaming > ul : last-child > li : last-child > ol : last-child > li : last-child > ul : last-child > li : last-child : after ,
1957
+ .result-streaming > ul : last-child > li : last-child > ul : last-child > li : last-child : after ,
1958
+ .result-streaming > ul : last-child > li : last-child > ul : last-child > li : last-child > ol : last-child > li : last-child : after ,
1959
+ .result-streaming > ul : last-child > li : last-child > ul : last-child > li : last-child > ul : last-child > li : last-child : after ,
1960
+ .result-streaming > ul : last-child > li : last-child [* |\:not - has \(]: after {
1961
+ content : "⬤" ;
1962
+ font-family : system-ui, Inter, Söhne Circle, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
1963
+ line-height : normal;
1964
+ margin-left : .25rem ;
1965
+ vertical-align : baseline
1966
+ }
1967
+ .result-streaming > ul : last-child > li : last-child : not (: has (* > li )): after {
1968
+ content : "⬤" ;
1969
+ font-family : system-ui, Inter, Söhne Circle, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
1970
+ line-height : normal;
1971
+ margin-left : .25rem ;
1972
+ vertical-align : baseline
1973
+ }
1974
+ .result-streaming > ol : last-child > li : last-child [* |\:not - has \(]: after {
1975
+ content : "⬤" ;
1976
+ font-family : system-ui, Inter, Söhne Circle, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
1977
+ line-height : normal;
1978
+ margin-left : .25rem ;
1979
+ vertical-align : baseline
1980
+ }
1981
+ .result-streaming > ol : last-child > li : last-child : not (: has (* > li )): after {
1982
+ content : "⬤" ;
1983
+ font-family : system-ui, Inter, Söhne Circle, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
1984
+ line-height : normal;
1985
+ margin-left : .25rem ;
1986
+ vertical-align : baseline
1987
+ }
1988
+ }
1989
+ @supports not (selector(: has (* ))) {
1990
+ .result-streaming > ol : last-child > li : last-child : after ,
1991
+ .result-streaming > ul : last-child > li : last-child : after {
1992
+ content : "⬤" ;
1993
+ font-family : system-ui, Inter, Söhne Circle, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
1994
+ line-height : normal;
1995
+ margin-left : .25rem ;
1996
+ vertical-align : baseline
1997
+ }
1998
+ }
0 commit comments