Skip to content

Commit e3d4b4d

Browse files
Merge pull request #49332 from anandmeg/patch-3
Patch 3
2 parents 928ec6c + 47765ad commit e3d4b4d

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ uid: learn-windows.introduction-to-web-development.4-css-basics
44
metadata:
55
title: Exercise - Style your HTML with CSS
66
description: Learn how to use CSS to apply styles to the HTML of your web app.
7-
ms.date: 09/17/2024
7+
ms.date: 02/26/2025
88
author: kjo-msft
99
ms.author: karinjohnson
1010
ms.topic: unit
11+
ms.custom: copilot-scenario-highlight
1112
durationInMinutes: 10
1213
content: |
13-
[!include[](includes/4-css-basics.md)]
14+
[!include[](includes/4-css-basics.md)]

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).

learn-pr/windows/get-started-with-web-development/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
manager: mijacobs
1010
ms.topic: module
1111
ms.service: vs-code
12-
ms.custom: engagement-fy23
12+
ms.custom: engagement-fy23, copilot-scenario-highlight
1313
title: Get started with web development using Visual Studio Code
1414
summary: Practice the beginning steps of web development by creating a simple web project in Visual Studio Code that contains a web page, a CSS file, and a JavaScript file. Learn how to use developer tools in your browser to check your work.
1515

0 commit comments

Comments
 (0)