Skip to content

Commit d0278ea

Browse files
authored
Add Copilot highlight section
1 parent 1929b16 commit d0278ea

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

learn-pr/windows/get-started-with-web-development/includes/4-css-basics.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,3 +236,17 @@ To add support for a dark theme to your CSS, use the following steps.
236236
1. Edit the `<body>` class attribute to switch the default back to light theme.
237237

238238
In the next unit, you use JavaScript to provide interactivity and support the switching of themes.
239+
240+
## Use GitHub Copilot to add a theme
241+
242+
You can use GitHub Copilot in your IDE to generate CSS to add a new theme. You can customize the prompt to specify properties to define the styles for HTML elements per your requirements.
243+
244+
The following text shows an example prompt for Copilot Chat:
245+
246+
```copilot-prompt
247+
Add a medium colored theme in the CSS file using hex color codes for blue font and light blue background. Make font family as Arial.
248+
```
249+
250+
GitHub Copilot is powered by AI, so surprises and mistakes are possible. For more information, see [Copilot FAQs](https://aka.ms/copilot-general-use-faqs).
251+
252+
Learn more about [GitHub Copilot in Visual Studio Code](https://code.visualstudio.com/docs/copilot/overview).

0 commit comments

Comments
 (0)